Fix bug #7002. I think this is correct, but Peter should check.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35970 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-01 19:37:59 +00:00
parent 7c2b2c464b
commit 9b105fc6bf

View File

@ -16,6 +16,7 @@
#include <QObject>
#include <QWaitCondition>
#include "frontends/Application.h"
#include "support/bind.h"
#include "support/functional.h"
@ -58,7 +59,10 @@ public:
R call(F f)
{
func_ = f;
callInGuiThread();
if (theApp() == 0)
synchronousFunctionCall();
else
callInGuiThread();
return return_value_;
}
@ -121,7 +125,10 @@ public:
void call(F f)
{
func_ = f;
callInGuiThread();
if (theApp() == 0)
synchronousFunctionCall();
else
callInGuiThread();
}
template<class F, class P1>