Commits

Yuya Nishihara committed 3380d68

run: exit as error if no dialog is provided

dlgfunc may return None if command-line arguments are invalid. In such case,
Qt's eventloop shouldn't be executed. Otherwise TortoiseHg process won't exit.

Comments (0)

Files changed (1)

tortoisehg/hgqt/run.py

             if dlg:
                 dlg.show()
                 dlg.raise_()
+            else:
+                return -1
         except:
             # Exception before starting eventloop needs to be postponed;
             # otherwise it will be ignored silently.