VirtualenvExecDialog: fixed an issue causing 'Cancel' to throw an exception.

Sun, 27 Jan 2019 13:58:06 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 27 Jan 2019 13:58:06 +0100
changeset 6674
f7b68db81452
parent 6673
c3d3c8abcdec
child 6675
71c12729cf08

VirtualenvExecDialog: fixed an issue causing 'Cancel' to throw an exception.

MultiProject/MultiProjectBrowser.py file | annotate | diff | comparison | revisions
VirtualEnv/VirtualenvExecDialog.py file | annotate | diff | comparison | revisions
--- a/MultiProject/MultiProjectBrowser.py	Sun Jan 27 12:37:53 2019 +0100
+++ b/MultiProject/MultiProjectBrowser.py	Sun Jan 27 13:58:06 2019 +0100
@@ -21,6 +21,7 @@
 import UI.PixmapCache
 
 
+# TODO: add action to copy a project on disk
 class MultiProjectBrowser(QTreeWidget):
     """
     Class implementing the multi project browser.
--- a/VirtualEnv/VirtualenvExecDialog.py	Sun Jan 27 12:37:53 2019 +0100
+++ b/VirtualEnv/VirtualenvExecDialog.py	Sun Jan 27 13:58:06 2019 +0100
@@ -144,7 +144,7 @@
         if button == self.buttonBox.button(QDialogButtonBox.Close):
             self.accept()
         elif button == self.buttonBox.button(QDialogButtonBox.Cancel):
-            self.__finish()
+            self.__finish(0, 0, giveUp=True)
     
     def __finish(self, exitCode, exitStatus, giveUp=False):
         """

eric ide

mercurial