From 22c6d6d182b5480dc6833e455bb3e2188d66af2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 25 Jul 2008 09:18:56 +0200 Subject: Fixing subprocess/listener handling --- portato/gui/__init__.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'portato/gui/__init__.py') diff --git a/portato/gui/__init__.py b/portato/gui/__init__.py index 20bcba6..0df890c 100644 --- a/portato/gui/__init__.py +++ b/portato/gui/__init__.py @@ -17,15 +17,12 @@ from .exception_handling import register_ex_handler def run (): from .windows.splash import SplashScreen - try: - s = SplashScreen(_("Loading Backend")) - register_ex_handler() - s.show() - from .windows.main import MainWindow - m = MainWindow(s) - s.hide() - m.main() - except KeyboardInterrupt: - pass + s = SplashScreen(_("Loading Backend")) - get_listener().close() + register_ex_handler() + s.show() + + from .windows.main import MainWindow + m = MainWindow(s) + s.hide() + m.main() -- cgit v1.2.3