mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Backport r40489.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40490 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ac2a21d86d
commit
e9c9c8f45c
@ -2296,7 +2296,7 @@ bool GuiView::renameBuffer(Buffer & b, docstring const & newname)
|
||||
|
||||
// if there is already a Buffer open with this name, we do not want
|
||||
// to have another one.
|
||||
if (theBufferList().exists(fname)) {
|
||||
if (theBufferList().exists(fname) && fname != oldname) {
|
||||
docstring const text =
|
||||
bformat(_("The file\n%1$s\nis already open in your current session.\n"
|
||||
"Please close it before attempting to overwrite it.\n"
|
||||
|
Loading…
Reference in New Issue
Block a user