summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-02 18:50:47 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-02 18:50:47 +0100
commit9df0a0a442b438e275f5ecda4c423a46a4ccfa37 (patch)
treed0e4c246f37d9e9de60e46c7e7d68289c43dd26f /alot
parent2707e0e5f38e27ce1ff6fd60effc349611cbfdb2 (diff)
moved exit code back to UI
Diffstat (limited to 'alot')
-rw-r--r--alot/command.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/command.py b/alot/command.py
index 58020b35..0b77d814 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -31,7 +31,7 @@ from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import urwid
-from twisted.internet import reactor, defer
+from twisted.internet import defer
import buffer
import settings
@@ -67,8 +67,7 @@ class ExitCommand(Command):
if (yield ui.choice('realy quit?', select='yes', cancel='no',
msg_position='left')) == 'no':
return
- reactor.stop()
- raise urwid.ExitMainLoop()
+ ui.exit()
class OpenThreadCommand(Command):