diff options
author | Papoteur <papoteur@mageia.org> | 2021-01-01 10:42:16 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2021-01-01 10:42:16 +0100 |
commit | 96ccc07f9ae9a341855a25de54c8aa33a837e2d0 (patch) | |
tree | ae36495611a90e73d7fb50e034ec3e534e88f0ac /lib/isodumper.py | |
parent | 620ab666448987d0c5c6e0e664af610d3b5a803d (diff) | |
download | isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar.gz isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar.bz2 isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.tar.xz isodumper-96ccc07f9ae9a341855a25de54c8aa33a837e2d0.zip |
Closing properly
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-x | lib/isodumper.py | 11 |
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__": |