Add signal so qweechat will exit on command line ctrl+c
This commit is contained in:
parent
f5e54d0169
commit
c2a06a010f
@ -33,6 +33,7 @@ It requires requires WeeChat 0.3.7 or newer, running on local or remote host.
|
|||||||
# start dev
|
# start dev
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
from pkg_resources import resource_filename
|
from pkg_resources import resource_filename
|
||||||
@ -46,6 +47,8 @@ from debug import DebugDialog
|
|||||||
from about import AboutDialog
|
from about import AboutDialog
|
||||||
from version import qweechat_version
|
from version import qweechat_version
|
||||||
|
|
||||||
|
signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||||
|
|
||||||
QtCore = qt_compat.import_module('QtCore')
|
QtCore = qt_compat.import_module('QtCore')
|
||||||
QtGui = qt_compat.import_module('QtGui')
|
QtGui = qt_compat.import_module('QtGui')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user