This reverts commit
824fe175112559af42fc42da889a60dc7ee465d1.
Following discussion on ticket #8342, I am not sure anymore that this is safe for branch. Reverting does not hurt much since the annoying debug messages that were cured by this commit are already (better) fixed by the patch for #8342.
{
return d->charCount(with_blanks);
}
-
-Buffer::ReadStatus Buffer::reload(bool clearUndo)
+
+Buffer::ReadStatus Buffer::reload()
{
setBusy(true);
// c.f. bug http://www.lyx.org/trac/ticket/6587
updateTitles();
markClean();
message(bformat(_("Document %1$s reloaded."), disp_fn));
- if (clearUndo)
- d->undo_.clear();
+ d->undo_.clear();
} else {
message(bformat(_("Could not reload document %1$s."), disp_fn));
}
/// read a new document from a string
bool readString(std::string const &);
/// Reloads the LyX file
- /// \param clearUndo if false, leave alone the undo stack.
- ReadStatus reload(bool clearUndo = true);
+ ReadStatus reload();
//FIXME: The following function should be private
//private:
/// read the header, returns number of unknown tokens
bool const saved = saveBuffer(b, fname);
if (saved)
- b.reload(false);
+ b.reload();
return saved;
}
- Fix undo machinery confusion after checking in a document under version
control (bug 8342).
-- Do not forget the undo information when doing a Save As...
-
- Replace current selection when pasting (bug 8027).
- Fix issues with crossref dialog in read-only documents (#8177).