From: Vincent van Ravesteijn Date: Thu, 18 Nov 2010 17:56:00 +0000 (+0000) Subject: Call Buffer::saveCheckSum() from Buffer::setFileName(). This fixes the bug that if... X-Git-Tag: 2.0.0~1789 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b3d7a104103db644eb986097b879365cb8c086c8;p=features.git Call Buffer::saveCheckSum() from Buffer::setFileName(). This fixes the bug that if the user wants to overwrite an already existing file, LyX asks whether he want to overwrite the existing file _and_ whether he wants to overwrite an externally modified file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36376 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 0127721761..b43c4db234 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -646,6 +646,7 @@ void Buffer::setFileName(FileName const & fname) { d->filename = fname; setReadonly(d->filename.isReadOnly()); + saveCheckSum(); updateTitles(); } @@ -4166,7 +4167,6 @@ bool Buffer::saveAs(FileName const & fn) // reset the old filename and unnamed state setFileName(old_name); setUnnamed(old_unnamed); - saveCheckSum(); return false; } }