Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py

changeset 4126
c28d0cf3b639
parent 4072
46fb585f60f2
child 4631
5c1a96925da4
--- a/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py	Sun Feb 22 12:16:32 2015 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py	Sun Feb 22 19:21:55 2015 +0100
@@ -277,6 +277,13 @@
 
         self.statusFilterCombo.clear()
         self.__statusFilters = []
+        self.statusList.clear()
+        self.shouldCancel = False
+        
+        self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
+        self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True)
+        self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
+        self.refreshButton.setEnabled(False)
         
         QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
         QApplication.processEvents()
@@ -468,15 +475,6 @@
         """
         Private slot to refresh the status display.
         """
-        self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
-        self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True)
-        self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
-        
-        self.refreshButton.setEnabled(False)
-        
-        self.statusList.clear()
-        
-        self.shouldCancel = False
         self.start(self.args)
         
     def __showError(self, msg):

eric ide

mercurial