]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
repair damage: canceling the "save options" dialog now works again.
authorJust van Rossum <just@letterror.com>
Fri, 29 Mar 2002 21:48:42 +0000 (21:48 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 29 Mar 2002 21:48:42 +0000 (21:48 +0000)
Mac/Tools/IDE/PyEdit.py

index 07b7277190f01934cbbe287fd4678f3a3ae27046..91a7ab1371dba6ed8d7f65f7ad4017c4f9be3dd6 100644 (file)
@@ -315,11 +315,10 @@ class Editor(W.Window):
                        self.editgroup.editor.settabsettings(tabsettings)
        
        def domenu_options(self, *args):
-               rvcreator, rveoln = SaveOptions(self._creator, self._eoln)
-               if rvcreator != self._creator or rveoln != self._eoln:
+               rv = SaveOptions(self._creator, self._eoln)
+               if rv:
                        self.editgroup.editor.selectionchanged() # ouch...
-                       self._creator = rvcreator
-                       self._eoln = rveoln
+                       self._creator, self._eoln = rv
        
        def clicklinefield(self):
                if self._currentwidget <> self.linefield: