[preview] Only copy file, don't chmod

Fixes #479.
This commit is contained in:
André Apitzsch
2020-03-17 23:11:29 +01:00
committed by Philipp Hörist
parent 76b9ef6b9f
commit 3d7d3e72a3

View File

@@ -502,7 +502,7 @@ class UrlImagePreviewPlugin(GajimPlugin):
'create files in this directory.'),
transient_for=app.app.get_active_window())
return
shutil.copy(str(preview.orig_path), target_path)
shutil.copyfile(str(preview.orig_path), target_path)
FileSaveDialog(on_ok,
path=app.config.get('last_save_dir'),