aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2017-05-08 07:51:39 +0200
committerPapoteur <papoteur@mageialinux-online.org>2017-05-08 07:51:39 +0200
commite4a148163ba00c43586ce68c8daf7a672efef128 (patch)
treeef0542b209a2907980b4cfc0d97739bb5835a37d
parent434506e668c839c1efecd578c4245363cd8ab6e9 (diff)
downloadisodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar
isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar.gz
isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar.bz2
isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.tar.xz
isodumper-e4a148163ba00c43586ce68c8daf7a672efef128.zip
Secure closing to avoid crash
-rwxr-xr-xlib/isodumper.py9
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()