Allows to exit from Devede by closing the window

This commit is contained in:
Sergio Costas 2014-07-11 23:31:23 +02:00
parent ba7beb5a3f
commit 2676ce1658
3 changed files with 13 additions and 1 deletions

View file

@ -363,7 +363,13 @@ class devede_project:
selection.mode = Gtk.SelectionMode.SINGLE
self.wmain_window.show_all()
def on_wmain_window_delete_event(self,b,e=None):
ask = devede.ask.ask_window(self.paths)
if (ask.run(_("Abort the current DVD and exit?"),_("Exit DeVeDe"))):
Gtk.main_quit()
return True
def on_adjust_disc_usage_clicked(self,b):