diff options
author | Paul W. Frields <[email protected]> | 2012-10-04 21:41:46 -0400 |
---|---|---|
committer | Paul W. Frields <[email protected]> | 2012-10-04 21:41:46 -0400 |
commit | 66727d8231479a9139632f4d61d4a288e5b1756a (patch) | |
tree | 391668734f1307d31f5cf6405e4b314528de0d24 | |
parent | 2e8e89f8078680646ba6f772d1e0d67ce646af8a (diff) | |
download | pulsecaster-66727d8231479a9139632f4d61d4a288e5b1756a.tar.gz pulsecaster-66727d8231479a9139632f4d61d4a288e5b1756a.tar.xz pulsecaster-66727d8231479a9139632f4d61d4a288e5b1756a.zip |
On abort confirm, remove the right tempfiles
-rw-r--r-- | pulsecaster/ui.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py index 94d9354..c610740 100644 --- a/pulsecaster/ui.py +++ b/pulsecaster/ui.py @@ -395,7 +395,11 @@ class PulseCasterUI: response = confirm.run() confirm.destroy() if response == Gtk.ResponseType.YES: - self._remove_tempfile(self.tempfile, self.temppath) + if self.gconfig.expert is False: + self._remove_tempfile(self.tempfile, self.temppath) + else: + self._remove_tempfile(self.tempfile1, self.temppath1) + self._remove_tempfile(self.tempfile2, self.temppath2) else: return self.file_chooser.destroy() |