From 1ead706c96c3a5bbe76904de8216c359671fee6c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 26 Sep 2006 09:59:03 +0000 Subject: [PATCH] * 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 --- src/lyx_cb.C | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 4d108c860b..0a54812fc6 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -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) -- 2.39.2