Skip to content
Snippets Groups Projects
Commit ae517c81 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fixed KeyboardInterrupt not working.

parent 1933d3eb
Branches
Tags
1 merge request!10Move to gtk3 and new command protocol
......@@ -208,7 +208,7 @@ class Main(object):
self.on_serial_disconnect_clicked()
db.stop_db()
Gtk.main_quit()
mainloop.quit()
def on_gtk_about_activate(self, menuitem, data=None):
"""Display the about window."""
......@@ -936,4 +936,9 @@ if __name__ == "__main__":
multiprocessing.freeze_support()
GObject.threads_init()
MAIN = Main()
Gtk.main()
mainloop = GObject.MainLoop()
try:
mainloop.run()
except KeyboardInterrupt:
logger.info('Ctrl+C hit, quitting')
MAIN.quit()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment