Commit f79d1859 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui Committed by Zander

Export: allow overwriting files

Fixes #18
parent fb5a0a1e
Pipeline #120044 passed with stage
in 2 minutes and 17 seconds
......@@ -274,7 +274,7 @@ namespace IconPreview {
if (dlg.run() == ResponseType.ACCEPT) {
var dest = dlg.get_file();
try {
file.copy (dest, FileCopyFlags.NONE);
file.copy (dest, FileCopyFlags.OVERWRITE);
} catch (Error e) {
var msg = new MessageDialog(this, MODAL, ERROR, CANCEL, _("Failed to save exported file"));
msg.secondary_text = e.message;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment