diff options
| author | Paul W. Frields <stickster@gmail.com> | 2010-12-19 17:06:26 -0500 |
|---|---|---|
| committer | Paul W. Frields <stickster@gmail.com> | 2010-12-19 17:06:26 -0500 |
| commit | 231fbfa8af5a50bb23e93443a70d3fe4270791da (patch) | |
| tree | 2c57be09eaa69da6cc4d2336e1e51c4d74e641ee | |
| parent | a67927d385677f0b16e29ca9f07bbadc9fe8453b (diff) | |
Catch case where user tries to save without a filename
| -rw-r--r-- | pulsecaster/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pulsecaster/ui.py b/pulsecaster/ui.py index f657acf..17d5935 100644 --- a/pulsecaster/ui.py +++ b/pulsecaster/ui.py @@ -255,6 +255,8 @@ class PulseCasterUI: def updateFileSinkPath(self, *args): self.filesinkpath = self.file_chooser.get_filename() + if not self.filesinkpath: + return self.hideFileChooser() if os.path.lexists(self.filesinkpath): if not self._confirm_overwrite(): |
