From e4a148163ba00c43586ce68c8daf7a672efef128 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 8 May 2017 07:51:39 +0200 Subject: Secure closing to avoid crash --- lib/isodumper.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/isodumper.py b/lib/isodumper.py index 6a73658..987b82f 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -808,6 +808,13 @@ if __name__ == "__main__": import sys user=sys.argv[1] app = IsoDumper(user) - app.handleevent() + try: + app.handleevent() + except: + yui.YDialog.deleteAllDialogs() + finally: + # next line seems to be a workaround to prevent the qt-app from crashing + # see https://github.com/libyui/libyui-qt/issues/41 + yui.YUILoader.deleteUI() -- cgit v1.2.1