Skip to content

Commit

Permalink
Fix FILE_CHOOSER_CONFIRMATION_*
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Oct 24, 2023
1 parent 38cc108 commit 84ffe87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,9 @@ def confirm_overwrite_callback(self, chooser):
self.show_errmsg(
"Simultaneously reading from & writing to a file is a baaad idea. "
"Choose a different output filename.", parent=chooser)
return Gtk.FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN
return Gtk.FileChooserConfirmation.SELECT_AGAIN
else:
return Gtk.FILE_CHOOSER_CONFIRMATION_CONFIRM
return Gtk.FileChooserConfirmation.CONFIRM

# Generic file chooser for opening or saving
def chooser_grab_filename(self, mode, save_suggestion=None):
Expand Down

0 comments on commit 84ffe87

Please sign in to comment.