Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
dfe0cd60 by wurstsalat at 2023-06-08T19:22:13+02:00
fix: Preview: Show error if file saving directory is not available

Fixes #11558

- - - - -


1 changed file:

- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -531,6 +531,13 @@ def _on_preview_action(self,
 
         elif action_name == 'preview-save-as':
             def _on_ok(paths: list[str]) -> None:
+                if not paths:
+                    ErrorDialog(
+                        _('Could not save file'),
+                        _('Could not save file to selected directory.'),
+                        transient_for=self)
+                    return
+
                 target = paths[0]
                 assert preview is not None
                 assert preview.orig_path is not None



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/dfe0cd605211097f4ae07f2667e661137028112b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/dfe0cd605211097f4ae07f2667e661137028112b
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to