Mercurial > libervia-backend
changeset 1162:b32800b9793e
primitivus: SIGINT is now ignored, APP_QUIT key/menu or :quit command must be used to quit Primitivus
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 04 Sep 2014 19:05:57 +0200 (2014-09-04) |
parents | 344bbe6fd1de |
children | 60ebe98c9d04 |
files | frontends/src/primitivus/primitivus |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Thu Sep 04 19:05:57 2014 +0200 +++ b/frontends/src/primitivus/primitivus Thu Sep 04 19:05:57 2014 +0200 @@ -42,6 +42,7 @@ 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 @@ 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