x button now closes import file menu

This commit is contained in:
J. Robert Magyar II 2015-12-05 10:34:30 -06:00 committed by Robert Jacob Magyar
parent 65ff7340af
commit 536cc48d85

View File

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