Revision: 7199
          http://svn.sourceforge.net/mahogany/?rev=7199&view=rev
Author:   vadz
Date:     2006-12-29 17:02:52 -0800 (Fri, 29 Dec 2006)

Log Message:
-----------
forget the old viewer when changing folders, otherwise we could restore the 
wrong default viewer for the new folder

Modified Paths:
--------------
    trunk/M/src/classes/MessageView.cpp

Modified: trunk/M/src/classes/MessageView.cpp
===================================================================
--- trunk/M/src/classes/MessageView.cpp 2006-12-26 01:25:10 UTC (rev 7198)
+++ trunk/M/src/classes/MessageView.cpp 2006-12-30 01:02:52 UTC (rev 7199)
@@ -3487,8 +3487,15 @@
    }
    else // no folder
    {
-      // on the contrary, revert to the default ones if we don't have any
-      // folder any more
+      // forget the viewer to restore: it won't make sense for the new folder
+      if ( m_viewerOld )
+      {
+         delete m_viewerOld;
+         m_viewerOld = NULL;
+         m_viewerNameOld.clear();
+      }
+
+      // revert to the default viewer if we don't have any folder any more
       ResetViewer();
 
       // make sure the viewer will be recreated the next time we are called


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to