Skip to content
Snippets Groups Projects
Commit 8d583a18 authored by Andrey Gursky's avatar Andrey Gursky Committed by Philipp Hörist
Browse files

Fixup for History Manager

Only call Gtk.main_quit() if History Manager is running standalone.
parent 57d4ddcd
No related branches found
No related tags found
No related merge requests found
...@@ -225,16 +225,19 @@ class HistoryManager: ...@@ -225,16 +225,19 @@ class HistoryManager:
def on_history_manager_window_delete_event(self, widget, event): def on_history_manager_window_delete_event(self, widget, event):
if not self.AT_LEAST_ONE_DELETION_DONE: if not self.AT_LEAST_ONE_DELETION_DONE:
Gtk.main_quit() if __name__ == '__main__':
Gtk.main_quit()
return return
def on_yes(clicked): def on_yes(clicked):
self.cur.execute('VACUUM') self.cur.execute('VACUUM')
self.con.commit() self.con.commit()
Gtk.main_quit() if __name__ == '__main__':
Gtk.main_quit()
def on_no(): def on_no():
Gtk.main_quit() if __name__ == '__main__':
Gtk.main_quit()
dialog = dialogs.YesNoDialog( dialog = dialogs.YesNoDialog(
_('Do you want to clean up the database? ' _('Do you want to clean up the database? '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment