linux eventlog: Ask for confirmation when overwriting an existing file when restoring. #1336
This commit is contained in:
parent
e2ba234850
commit
8c3e7ab0b3
|
@ -137,6 +137,7 @@ namespace SparkleShare {
|
||||||
this, FileChooserAction.Save, "Cancel", ResponseType.Cancel, "Save", ResponseType.Ok);
|
this, FileChooserAction.Save, "Cancel", ResponseType.Cancel, "Save", ResponseType.Ok);
|
||||||
|
|
||||||
dialog.CurrentName = file_name;
|
dialog.CurrentName = file_name;
|
||||||
|
dialog.DoOverwriteConfirmation = true;
|
||||||
dialog.SetCurrentFolder (target_folder_path);
|
dialog.SetCurrentFolder (target_folder_path);
|
||||||
|
|
||||||
if (dialog.Run () == (int) ResponseType.Ok)
|
if (dialog.Run () == (int) ResponseType.Ok)
|
||||||
|
|
Loading…
Reference in a new issue