]> git.lyx.org Git - features.git/commitdiff
Backport r40489.
authorRichard Heck <rgheck@comcast.net>
Tue, 13 Dec 2011 19:23:31 +0000 (19:23 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 13 Dec 2011 19:23:31 +0000 (19:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40490 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 330e8b197b39a9bab7f5c2a943a4b2904c3c5005..81354f1949d776cd90fdabea96963694275c8f2f 100644 (file)
@@ -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"