From 44566054a25982031110bd3c4c95729394b7d68e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 6 Aug 2014 13:15:53 +0200 Subject: [PATCH] qt: quit on SIGINT --- gui/qt/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py index 23bef702..5ee51136 100644 --- a/gui/qt/__init__.py +++ b/gui/qt/__init__.py @@ -22,7 +22,7 @@ from electrum.util import print_error, print_msg from electrum.plugins import run_hook import os.path, json, ast, traceback import shutil - +import signal try: import PyQt4 @@ -208,6 +208,7 @@ class ElectrumGui: w.connect_slots(s) w.update_wallet() + signal.signal(signal.SIGINT, lambda *args: self.app.quit()) self.app.exec_() if self.tray: self.tray.hide()