Commits

Yuya Nishihara committed 801a6f3

mqdock: remove refreshing flag superseded by blockSignals

  • Participants
  • Parent commits 7cc097a

Comments (0)

Files changed (1)

tortoisehg/hgqt/mq.py

     def __init__(self, parent):
         QDockWidget.__init__(self, parent)
         self._repoagent = None
-        self.refreshing = False
         self.finishfunc = None
 
         self.setFeatures(QDockWidget.DockWidgetClosable |
 
     @pyqtSlot()
     def reload(self):
-        self.refreshing = True
         self.reselectPatchItem = None
         try:
-            try:
-                self._reload()
-            except Exception, e:
-                self.showMessage.emit(hglib.tounicode(str(e)))
-                if 'THGDEBUG' in os.environ:
-                    import traceback
-                    traceback.print_exc()
-        finally:
-            self.refreshing = False
+            self._reload()
+        except Exception, e:
+            self.showMessage.emit(hglib.tounicode(str(e)))
+            if 'THGDEBUG' in os.environ:
+                import traceback
+                traceback.print_exc()
         if self.reselectPatchItem:
             self.queueListWidget.setCurrentItem(self.reselectPatchItem)