Changed the log browser dialog to show the error log only, if there is any contents.

Mon, 05 Apr 2010 11:08:19 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 05 Apr 2010 11:08:19 +0000
changeset 171
0bb5b5e2e219
parent 170
a267d9774acf
child 172
4d421fed3b64

Changed the log browser dialog to show the error log only, if there is any contents.

Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py	Sun Apr 04 13:58:37 2010 +0000
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py	Mon Apr 05 11:08:19 2010 +0000
@@ -252,6 +252,9 @@
         
         @param fn filename to show the log for (string)
         """
+        self.errorGroup.hide()
+        QApplication.processEvents()
+        
         self.filename = fn
         self.dname, self.fname = self.vcs.splitPath(fn)
         
@@ -396,6 +399,7 @@
         error pane.
         """
         if self.process is not None:
+            self.errorGroup.show()
             s = str(self.process.readAllStandardError(), 
                      Preferences.getSystem("IOEncoding"), 
                      'replace')
@@ -586,7 +590,7 @@
         Private slot called, when the stop on copy/move checkbox is clicked
         """
         self.vcs.getPlugin().setPreferences("StopLogOnCopy", 
-                                            int(self.stopCheckBox.isChecked()))
+                                            self.stopCheckBox.isChecked())
         self.nextButton.setEnabled(True)
         self.limitSpinBox.setEnabled(True)
     
@@ -615,6 +619,7 @@
         else:
             self.errors.insertPlainText(input)
             self.errors.ensureCursorVisible()
+        self.errorGroup.show()
         
         self.process.write(input)
         

eric ide

mercurial