aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-01-01 10:42:16 +0100
committerPapoteur <papoteur@mageia.org>2021-01-01 10:42:16 +0100
commit96ccc07f9ae9a341855a25de54c8aa33a837e2d0 (patch)
treeae36495611a90e73d7fb50e034ec3e534e88f0ac
parent620ab666448987d0c5c6e0e664af610d3b5a803d (diff)
downloadisodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar
isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar.gz
isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar.bz2
isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar.xz
isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.zip
Closing properly
-rwxr-xr-xlib/isodumper.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 42d83c8..5220a0d 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -560,10 +560,8 @@ class IsoDumper(basedialog.BaseDialog):
#elf.persistencecb.setDisabled()
def close(self):
- self.dialog.destroy()
- self.dialog = None
- self.glib_loop.quit()
- self.glib_thread.join()
+ # to exit from _handleEvents loop
+ self._running = False
def logger(self, text):
self.logview.appendLines(text + "\n")
@@ -933,6 +931,11 @@ exFAT, NTFS or ext. You can specify a volume name and the format in a new dialog
import traceback
traceback.print_exc()
yui.YDialog.deleteAllDialogs()
+ # Closing
+ self.dialog.destroy()
+ self.dialog = None
+ self.glib_loop.quit()
+ self.glib_thread.join()
if __name__ == "__main__":