From dbfea3bd035b4da8781e0b31e0208a2e66502abf Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Thu, 1 Nov 2001 00:19:46 +0000 Subject: [PATCH] fix toolbar flashing on deleting messages r=cavin, sr=sspitzer 100802 git-svn-id: svn://10.0.0.236/trunk@106892 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/src/nsMsgDBView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/base/src/nsMsgDBView.cpp b/mozilla/mailnews/base/src/nsMsgDBView.cpp index ee3b054474e..2064d02342c 100644 --- a/mozilla/mailnews/base/src/nsMsgDBView.cpp +++ b/mozilla/mailnews/base/src/nsMsgDBView.cpp @@ -667,8 +667,8 @@ NS_IMETHODIMP nsMsgDBView::SelectionChanged() (numSelected > 1 && mNumSelectedRows > 1)) && mOfflineMsgSelected == offlineMsgSelected) { - } - else if (mCommandUpdater) // o.t. push an updated + } // don't update commands if we're removing rows, unless it was the last row. + else if (mCommandUpdater && (!mRemovingRow || GetSize() == 0)) // o.t. push an updated { mCommandUpdater->UpdateCommandStatus(); }