mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Rename GuiViewPrivate::saveAndDestroy to autosaveAndDestroy (because that's what it actually does according to the return string).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36324 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bc95011fb7
commit
a0916d4fef
@ -375,7 +375,7 @@ public:
|
||||
static docstring previewAndDestroy(Buffer const * orig, Buffer * buffer, string const & format);
|
||||
static docstring exportAndDestroy(Buffer const * orig, Buffer * buffer, string const & format);
|
||||
static docstring compileAndDestroy(Buffer const * orig, Buffer * buffer, string const & format);
|
||||
static docstring saveAndDestroy(Buffer const * orig, Buffer * buffer, FileName const & fname);
|
||||
static docstring autosaveAndDestroy(Buffer const * orig, Buffer * buffer, FileName const & fname);
|
||||
|
||||
template<class T>
|
||||
static docstring runAndDestroy(const T& func, Buffer const * orig, Buffer * buffer, string const & format, string const & msg);
|
||||
@ -1493,7 +1493,7 @@ BufferView const * GuiView::currentBufferView() const
|
||||
|
||||
|
||||
#if (QT_VERSION >= 0x040400)
|
||||
docstring GuiView::GuiViewPrivate::saveAndDestroy(Buffer const * orig, Buffer * buffer, FileName const & fname)
|
||||
docstring GuiView::GuiViewPrivate::autosaveAndDestroy(Buffer const * orig, Buffer * buffer, FileName const & fname)
|
||||
{
|
||||
bool failed = true;
|
||||
FileName const tmp_ret = FileName::tempName("lyxauto");
|
||||
@ -1525,8 +1525,8 @@ void GuiView::autoSave()
|
||||
|
||||
#if (QT_VERSION >= 0x040400)
|
||||
GuiViewPrivate::busyBuffers.insert(buffer);
|
||||
QFuture<docstring> f = QtConcurrent::run(GuiViewPrivate::saveAndDestroy, buffer, buffer->clone(),
|
||||
buffer->getAutosaveFileName());
|
||||
QFuture<docstring> f = QtConcurrent::run(GuiViewPrivate::autosaveAndDestroy,
|
||||
buffer, buffer->clone(), buffer->getAutosaveFileName());
|
||||
d.autosave_watcher_.setFuture(f);
|
||||
#else
|
||||
buffer->autoSave();
|
||||
|
Loading…
Reference in New Issue
Block a user