Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca3d307

Browse files
committed
repair damage: canceling the "save options" dialog now works again.
1 parent 8bb61c8 commit ca3d307

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Mac/Tools/IDE/PyEdit.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,10 @@ def domenu_fontsettings(self, *args):
315315
self.editgroup.editor.settabsettings(tabsettings)
316316

317317
def domenu_options(self, *args):
318-
rvcreator, rveoln = SaveOptions(self._creator, self._eoln)
319-
if rvcreator != self._creator or rveoln != self._eoln:
318+
rv = SaveOptions(self._creator, self._eoln)
319+
if rv:
320320
self.editgroup.editor.selectionchanged() # ouch...
321-
self._creator = rvcreator
322-
self._eoln = rveoln
321+
self._creator, self._eoln = rv
323322

324323
def clicklinefield(self):
325324
if self._currentwidget <> self.linefield:

0 commit comments

Comments
 (0)