controls/LogViewer.py
changeset 1871 933fbe9a5e2c
parent 1847 6198190bc121
child 1878 fb73a6b6622d
--- a/controls/LogViewer.py	Thu Oct 12 16:18:05 2017 +0300
+++ b/controls/LogViewer.py	Fri Oct 13 13:17:42 2017 +0300
@@ -399,7 +399,7 @@
         self.CleanButton.Enable(self.LogSource is not None)
         if log_source is not None:
             self.ResetLogMessages()
-            self.RefreshView()
+            wx.CallAfter(self.RefreshView)
 
     def GetLogMessageFromSource(self, msgidx, level):
         if self.LogSource is not None: