On 04/11/2012 01:48, Pavel Sanda wrote:
Pavel Sanda wrote:
commit 0a9735c5f7bbbaa24ac2e3e4fa745c6dfbc95a18
Author: Pavel Sanda <sa...@lyx.org>
Date:   Sun Nov 4 01:18:16 2012 +0100

     LyX 2.1 will support only Qt>=4.5.
(http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg175737.html) Now start with simple cases.
There are few things left, I'm not sure what was the original issue, but you 
may remember:

1) things related to threading/autosave:
src/Buffer.cpp-         /// This function is deprecated as the frontend needs 
to take care
src/Buffer.cpp-         /// of cloning the buffer and autosaving it in another 
thread. It
src/Buffer.cpp:         /// is still here to allow (QT_VERSION < 0x040400).
src/Buffer.cpp-         AutoSaveBuffer autosave(*this, fname);
src/Buffer.cpp-         autosave.start();
src/Buffer.cpp-         return true;

This is in case threaded export is not enabled. At first there was a macro to conditionally enable this feature. But it seems this macro is no more and you can thus safely erase this code.

src/frontends/qt4/GuiView.cpp:#if (QT_VERSION >= 0x040400)
src/frontends/qt4/GuiView.cpp-  GuiViewPrivate::busyBuffers.insert(buffer);
src/frontends/qt4/GuiView.cpp-  QFuture<docstring> f = 
QtConcurrent::run(GuiViewPrivate::autosaveAndDestroy,
src/frontends/qt4/GuiView.cpp-          buffer, buffer->cloneBufferOnly());
src/frontends/qt4/GuiView.cpp-  d.autosave_watcher_.setFuture(f);
src/frontends/qt4/GuiView.cpp-#else
src/frontends/qt4/GuiView.cpp-        buffer->autoSave();
src/frontends/qt4/GuiView.cpp-#endif

Ditto.

Abdel

Reply via email to