}
-bool Buffer::isBakClean() const
-{
- return d->bak_clean;
-}
-
-
bool Buffer::isExternallyModified(CheckMethod method) const
{
LASSERT(d->filename.exists(), /**/);
}
-void Buffer::markBakClean() const
-{
- d->bak_clean = true;
-}
-
-
void Buffer::setUnnamed(bool flag)
{
d->unnamed = flag;
// Perfect target for a thread...
void Buffer::autoSave() const
{
- if (isBakClean() || isReadonly()) {
+ if (d->bak_clean || isReadonly()) {
// We don't save now, but we'll try again later
resetAutosaveTimers();
return;
AutoSaveBuffer autosave(*this, getAutosaveFilename());
autosave.start();
- markBakClean();
+ d->bak_clean = true;
+
resetAutosaveTimers();
}
/// return true if the main lyx file does not need saving
bool isClean() const;
///
- bool isBakClean() const;
- ///
bool isDepClean(std::string const & name) const;
/// whether or not disk file has been externally modified
/// mark the main lyx file as not needing saving
void markClean() const;
- ///
- void markBakClean() const;
-
///
void markDepClean(std::string const & name);