From 6db44af9f6da0afb1fd3ab6f3a00468aca2304ac Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Mon, 18 Dec 2000 21:36:01 +0000 Subject: [PATCH] Removed unneded setting of index to kNothingSelected when an disabled option is selected r=blake, sr=buster Bug 57580 --- layout/forms/nsListControlFrame.cpp | 1 - layout/html/forms/src/nsListControlFrame.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp index 0a86aab6d53d..b4fc25de1172 100644 --- a/layout/forms/nsListControlFrame.cpp +++ b/layout/forms/nsListControlFrame.cpp @@ -2895,7 +2895,6 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent) mButtonDown = PR_FALSE; CaptureMouseEvents(mPresContext, PR_FALSE); SetContentSelected(mSelectedIndex, PR_FALSE); - mSelectedIndex = kNothingSelected; return NS_OK; } } diff --git a/layout/html/forms/src/nsListControlFrame.cpp b/layout/html/forms/src/nsListControlFrame.cpp index 0a86aab6d53d..b4fc25de1172 100644 --- a/layout/html/forms/src/nsListControlFrame.cpp +++ b/layout/html/forms/src/nsListControlFrame.cpp @@ -2895,7 +2895,6 @@ nsListControlFrame::MouseUp(nsIDOMEvent* aMouseEvent) mButtonDown = PR_FALSE; CaptureMouseEvents(mPresContext, PR_FALSE); SetContentSelected(mSelectedIndex, PR_FALSE); - mSelectedIndex = kNothingSelected; return NS_OK; } }