Slight improvement of the Mercurial interface with respect to responsiveness.

Sat, 30 Apr 2011 13:04:40 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 30 Apr 2011 13:04:40 +0200
changeset 1006
ec194fa790d2
parent 1005
6986db425aa2
child 1007
b60f646323c8

Slight improvement of the Mercurial interface with respect to responsiveness.

Plugins/VcsPlugins/vcsMercurial/HgDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sat Apr 30 12:48:38 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sat Apr 30 13:04:40 2011 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt
+from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication
 from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit
 
 from E5Gui import E5MessageBox
@@ -177,6 +177,8 @@
                     if '.e4p' in line:
                         self.__hasAddOrDelete = True
                         break
+        
+        QCoreApplication.processEvents()
     
     def __readStderr(self):
         """
@@ -192,6 +194,8 @@
                     'replace')
             self.errors.insertPlainText(s)
             self.errors.ensureCursorVisible()
+        
+        QCoreApplication.processEvents()
     
     def on_passwordCheckBox_toggled(self, isOn):
         """

eric ide

mercurial