diff --git a/src/Exporter.cpp b/src/Exporter.cpp index cf036fc550..a5a153aacd 100644 --- a/src/Exporter.cpp +++ b/src/Exporter.cpp @@ -47,8 +47,8 @@ static int checkOverwrite(FileName const & filename) makeDisplayPath(filename.absFileName())); return Alert::prompt(_("Overwrite file?"), text, 0, 3, - _("&Overwrite"), _("Overwrite &all"), - _("&Keep file"), _("&Cancel export")); + _("&Keep file"), _("&Overwrite"), + _("Overwrite &all"), _("&Cancel export")); } @@ -79,13 +79,13 @@ CopyStatus copyFile(string const & format, if (!force) { switch(checkOverwrite(destFile)) { case 0: + return SUCCESS; + case 1: ret = SUCCESS; break; - case 1: + case 2: ret = FORCE; break; - case 2: - return SUCCESS; default: return CANCEL; }