Skip to content

Commit

Permalink
Enable overwrite warning in save dialog (fixes #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
innir committed Jun 25, 2017
1 parent 8ae6ace commit f037de6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gtranscribe/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_save_filename(self):
Gtk.FileChooserAction.SAVE,
(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
Gtk.STOCK_SAVE, Gtk.ResponseType.OK))
chooser.set_do_overwrite_confirmation(True)
response = chooser.run()
if response == Gtk.ResponseType.OK:
filename = chooser.get_filename()
Expand Down

0 comments on commit f037de6

Please sign in to comment.