Correct r33454.

I like braces.. too much.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33455 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-02-12 23:03:43 +00:00
parent 2a8fb9ae52
commit 5441eb16e5

View File

@ -3124,7 +3124,7 @@ void Buffer::moveAutosaveFile(support::FileName const & oldauto) const
FileName const newauto = getAutosaveFilename();
oldauto.refresh();
if (newauto != oldauto && oldauto.exists())
if (!oldauto.moveTo(newauto)))
if (!oldauto.moveTo(newauto))
LYXERR0("Unable to move autosave file `" << oldauto << "'!");
}