1
0

qt: quit on SIGINT

This commit is contained in:
ThomasV
2014-08-06 13:15:53 +02:00
parent 466f325b88
commit 44566054a2

View File

@@ -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()