Add signal so qweechat will exit on command line ctrl+c

This commit is contained in:
Ricky 2016-11-13 01:15:02 -08:00
parent f5e54d0169
commit c2a06a010f
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ It requires requires WeeChat 0.3.7 or newer, running on local or remote host.
# start dev
#
import signal
import sys
import traceback
from pkg_resources import resource_filename
@ -46,6 +47,8 @@ from debug import DebugDialog
from about import AboutDialog
from version import qweechat_version
signal.signal(signal.SIGINT, signal.SIG_DFL)
QtCore = qt_compat.import_module('QtCore')
QtGui = qt_compat.import_module('QtGui')