1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 58628f5

qtapp: fix KeyboardInterrupt handler not to open exception dialog

QApplication.quit() is not immediate operation.

  • Participants
  • Parent commits 306214c
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtapp.py

View file
  • Ignore whitespace
             if qtlib.QuestionMsgBox(_('Keyboard interrupt'),
                                     _('Close this application?')):
                 QApplication.quit()
-            else:
-                self.errors = []
-                return
+
+            self.errors = []
+            return
         else:
             dlg = bugreport.BugReport(opts, parent=self._mainapp.activeWindow())
         dlg.exec_()