]> git.lyx.org Git - features.git/commitdiff
* emit buffer::resetAutosaveTimers instead of calling LyXView::resetAutosaveTimer...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 26 Sep 2006 09:59:03 +0000 (09:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 26 Sep 2006 09:59:03 +0000 (09:59 +0000)
 * 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

index 4d108c860bc9d733b6da8d12b6ac089e563ec0e9..0a54812fc659e22ae395a9be37cce6353de295de 100644 (file)
@@ -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)