The referenced commit lead to performance issues and possibly
crashes in some cases when saving preferences. Thanks to Guillaume
for discovering the issues. See #9828 for more discussion.
I hope to come up with a better fix for #9507.
This reverts commit
390ae05444cf4899a3028dcbbfe1095ecd2d207a.
}
-void BufferList::updatePreviews()
-{
- BufferStorage::iterator it = bstore.begin();
- BufferStorage::iterator end = bstore.end();
- for (; it != end; ++it)
- (*it)->updatePreviews();
-}
-
-
int BufferList::bufferNum(FileName const & fname) const
{
FileNameList const buffers(fileNames());
//@{
/// reset current author for all buffers
void recordCurrentAuthor(Author const & author);
- /// update previews for all buffers, e.g. for Prefs update
- void updatePreviews();
/// Call changed() on all buffers, internal or not
void changed(bool update_metrics) const;
/// emergency save for all buffers
update_screen_font_ = false;
}
- theBufferList().updatePreviews();
-
// The Save button has been pressed
if (isClosing())
dispatch(FuncRequest(LFUN_PREFERENCES_SAVE));