Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30627/src/classes

Modified Files:
        MessageView.cpp 
Log Message:
don't call Update() after applying options unless something really changed; also never 
leave the viewer frozen in Update(), even if there is no message

Index: MessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageView.cpp,v
retrieving revision 1.157
retrieving revision 1.158
diff -b -u -2 -r1.157 -r1.158
--- MessageView.cpp     8 Sep 2004 22:49:06 -0000       1.157
+++ MessageView.cpp     18 Sep 2004 16:50:02 -0000      1.158
@@ -981,5 +981,6 @@
       case MEventOptionsChangeData::Ok:
       case MEventOptionsChangeData::Cancel:
-         UpdateProfileValues();
+         if ( UpdateProfileValues() )
+            Update();
          break;
 
@@ -987,6 +988,4 @@
          FAIL_MSG(_T("unknown options change event"));
    }
-
-   Update();
 }
 
@@ -1030,5 +1029,5 @@
 // ----------------------------------------------------------------------------
 
-void
+bool
 MessageView::UpdateProfileValues()
 {
@@ -1070,10 +1069,13 @@
          }
       }
+
+      return true;
    }
-   else // nothing significant changed
-   {
+   //else: nothing significant changed
+
       // but still reassign to update all options
       m_ProfileValues = settings;
-   }
+
+   return false;
 }
 
@@ -2302,5 +2304,7 @@
    if( !m_mailMessage )
    {
-      // no message to display
+      // no message to display, but still call Update() after Clear()
+      m_viewer->Update();
+
       return;
    }



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to