primitivus: SIGINT is now ignored, APP_QUIT key/menu or :quit command must be used to quit Primitivus
This commit is contained in:
parent
49f7ebc67c
commit
c39333cd3f
1 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ from sat_frontends.tools.misc import InputHistory
|
|||
from sat_frontends.constants import Const as commonConst # FIXME
|
||||
from sat_frontends.tools.jid import JID
|
||||
from os.path import join
|
||||
import signal
|
||||
|
||||
|
||||
class ChatList(QuickChatList):
|
||||
|
|
@ -195,6 +196,9 @@ class PrimitivusApp(QuickApp, InputHistory):
|
|||
|
||||
self.x_notify = Notify()
|
||||
|
||||
# we already manage exit with a_key['APP_QUIT'], so we don't want C-c
|
||||
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||
|
||||
@property
|
||||
def mode(self):
|
||||
return self.editBar.mode
|
||||
|
|
|
|||
Loading…
Reference in a new issue