#include <QObject>
#include <QWaitCondition>
-#include "frontends/Application.h"
#include "support/bind.h"
#include "support/functional.h"
+#if QT_VERSION < 0x040400
+#define Q_EMIT
+#endif
+
namespace lyx {
namespace frontend {
R call(F f)
{
func_ = f;
- if (theApp() == 0)
- synchronousFunctionCall();
- else
- callInGuiThread();
+ callInGuiThread();
return return_value_;
}
void call(F f)
{
func_ = f;
- if (theApp() == 0)
- synchronousFunctionCall();
- else
- callInGuiThread();
+ callInGuiThread();
}
template<class F, class P1>