[tor-commits] r4520: Fixes messagelog drawing problem, wrt ticket #2093 (vidalia/trunk/src/vidalia/log)

vidalia-svn at svn.torproject.org vidalia-svn at svn.torproject.org
Wed Feb 23 12:20:10 UTC 2011


Author: chiiph
Date: 2011-02-23 12:20:10 +0000 (Wed, 23 Feb 2011)
New Revision: 4520

Modified:
   vidalia/trunk/src/vidalia/log/MessageLog.cpp
Log:
Fixes messagelog drawing problem, wrt ticket #2093

Modified: vidalia/trunk/src/vidalia/log/MessageLog.cpp
===================================================================
--- vidalia/trunk/src/vidalia/log/MessageLog.cpp	2011-02-17 20:28:26 UTC (rev 4519)
+++ vidalia/trunk/src/vidalia/log/MessageLog.cpp	2011-02-23 12:20:10 UTC (rev 4520)
@@ -454,6 +454,7 @@
 void
 MessageLog::log(tc::Severity type, const QString &message)
 {
+  setUpdatesEnabled(false);  
   /* Only add the message if it's not being filtered out */
   if (_filter & (uint)type) {
     /* Add the message to the list and scroll to it if necessary. */
@@ -472,6 +473,7 @@
       _logFile << item->toString() << "\n";
     }
   }
+  setUpdatesEnabled(true);  
 }
 
 /** Displays help information about the message log. */



More information about the tor-commits mailing list