mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
* emit buffer::resetAutosaveTimers instead of calling LyXView::resetAutosaveTimer() directly
* replace bv->owner()->buffer() with bv->buffer() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15152 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
10d5ea0d8a
commit
1ead706c96
@ -34,7 +34,6 @@
|
||||
#include "frontends/Alert.h"
|
||||
#include "frontends/FileDialog.h"
|
||||
#include "frontends/lyx_gui.h"
|
||||
#include "frontends/LyXView.h"
|
||||
|
||||
#include "support/filefilterlist.h"
|
||||
#include "support/filetools.h"
|
||||
@ -307,7 +306,7 @@ void autoSave(BufferView * bv)
|
||||
|
||||
if (bv->buffer()->isBakClean() || bv->buffer()->isReadonly()) {
|
||||
// We don't save now, but we'll try again later
|
||||
bv->owner()->resetAutosaveTimer();
|
||||
bv->buffer()->resetAutosaveTimers();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -324,7 +323,7 @@ void autoSave(BufferView * bv)
|
||||
autosave.start();
|
||||
|
||||
bv->buffer()->markBakClean();
|
||||
bv->owner()->resetAutosaveTimer();
|
||||
bv->buffer()->resetAutosaveTimers();
|
||||
}
|
||||
|
||||
|
||||
@ -383,7 +382,7 @@ string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagrap
|
||||
(asParagraph) ? LFUN_FILE_INSERT_ASCII_PARA : LFUN_FILE_INSERT_ASCII);
|
||||
|
||||
FileDialog::Result result =
|
||||
fileDlg.open(bv->owner()->buffer()->filePath(),
|
||||
fileDlg.open(bv->buffer()->filePath(),
|
||||
FileFilterList(), string());
|
||||
|
||||
if (result.first == FileDialog::Later)
|
||||
|
Loading…
Reference in New Issue
Block a user