Merge pull request #75 from cicl06/master

Small fix in import script
This commit is contained in:
Sam Manzi 2015-12-07 10:07:51 +11:00
commit 828cb1ac08

View File

@ -167,7 +167,7 @@ class DbLoader(CLIDbLoader):
import_dialog.set_current_folder(default_dir)
while True:
response = import_dialog.run()
if response == Gtk.ResponseType.CANCEL:
if response in (Gtk.ResponseType.CANCEL, Gtk.ResponseType.DELETE_EVENT):
break
elif response == Gtk.ResponseType.OK:
filename = import_dialog.get_filename()