mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix bug #2762: LyX -> LaTeX export autonomously overwrites existing EPS files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34115 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5aa69caae5
commit
8de36d389b
@ -49,10 +49,21 @@ static int checkOverwrite(FileName const & src_file, FileName const & dst_file)
|
|||||||
docstring text = bformat(_("The file %1$s already exists.\n\n"
|
docstring text = bformat(_("The file %1$s already exists.\n\n"
|
||||||
"Do you want to overwrite that file?"),
|
"Do you want to overwrite that file?"),
|
||||||
makeDisplayPath(dst_file.absFilename()));
|
makeDisplayPath(dst_file.absFilename()));
|
||||||
return Alert::prompt(_("Overwrite file?"),
|
int choice = Alert::prompt(_("Overwrite file?"),
|
||||||
text, 0, 2,
|
text, 0, 2,
|
||||||
_("&Overwrite"), _("Overwrite &all"),
|
_("&Keep file"), _("&Overwrite"),
|
||||||
_("&Cancel export"));
|
_("&Cancel export"));
|
||||||
|
|
||||||
|
if (choice == 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
if (choice == 1) {
|
||||||
|
text = _("Should I continue asking for overwriting files?");
|
||||||
|
return Alert::prompt(_("Overwrite all files?"),
|
||||||
|
text, 0, 0,
|
||||||
|
_("Continue &asking"), _("&Overwrite all"));
|
||||||
|
}
|
||||||
|
return choice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user