mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
GuiView.cpp: fix compilation after r33533
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33540 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
10f1370464
commit
1c9a6f8b49
@ -100,6 +100,7 @@
|
||||
#include <QSplitter>
|
||||
#include <QStackedWidget>
|
||||
#include <QStatusBar>
|
||||
#include <QThread>
|
||||
#include <QTime>
|
||||
#include <QTimer>
|
||||
#include <QToolBar>
|
||||
@ -108,6 +109,14 @@
|
||||
|
||||
#define EXPORT_in_THREAD 1
|
||||
|
||||
struct Sleep : QThread
|
||||
{
|
||||
static void millisec(unsigned long ms)
|
||||
{
|
||||
QThread::usleep(ms * 1000);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// QtConcurrent was introduced in Qt 4.4
|
||||
#if (QT_VERSION >= 0x040400)
|
||||
@ -2606,7 +2615,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
|
||||
CompareOptions options;
|
||||
Compare * compare = new Compare(loadIfNeeded(FileName(f1)), loadIfNeeded(FileName(f2)), dest, options);
|
||||
compare->start(QThread::LowPriority);
|
||||
sleep(2);
|
||||
Sleep::millisec(200);
|
||||
lyx::dispatch(FuncRequest(LFUN_BUFFER_SWITCH, dest->absFileName()));
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user