electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 44566054a25982031110bd3c4c95729394b7d68e
parent 466f325b88ca940f0190d83907fccb0435196f1d
Author: ThomasV <thomasv@gitorious>
Date:   Wed,  6 Aug 2014 13:15:53 +0200

qt: quit on SIGINT

Diffstat:
Mgui/qt/__init__.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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()