Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
-
dfe0cd60
by wurstsalat at 2023-06-08T19:22:13+02:00
1 changed file:
Changes:
| ... | ... | @@ -531,6 +531,13 @@ def _on_preview_action(self, |
| 531 | 531 | |
| 532 | 532 | elif action_name == 'preview-save-as':
|
| 533 | 533 | def _on_ok(paths: list[str]) -> None:
|
| 534 | + if not paths:
|
|
| 535 | + ErrorDialog(
|
|
| 536 | + _('Could not save file'),
|
|
| 537 | + _('Could not save file to selected directory.'),
|
|
| 538 | + transient_for=self)
|
|
| 539 | + return
|
|
| 540 | + |
|
| 534 | 541 | target = paths[0]
|
| 535 | 542 | assert preview is not None
|
| 536 | 543 | assert preview.orig_path is not None
|