diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2017-05-08 07:51:39 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2017-05-08 07:51:39 +0200 |
commit | e4a148163ba00c43586ce68c8daf7a672efef128 (patch) | |
tree | ef0542b209a2907980b4cfc0d97739bb5835a37d /lib | |
parent | 434506e668c839c1efecd578c4245363cd8ab6e9 (diff) | |
download | isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar.gz isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar.bz2 isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar.xz isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.zip |
Secure closing to avoid crash
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/isodumper.py | 9 |
1 files changed, 8 insertions, 1 deletions
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() |