fix for running EQL5 on a separate thread (not the UI one); N.B. requires 'thread-safe.lisp' to be loaded on startup;

This commit is contained in:
polos 2021-04-28 17:22:33 +02:00
parent dab9b53283
commit b20eed0306

View file

@ -13,7 +13,9 @@ int DynObject::event_filter_handle = 0;
QObject* DynObject::currentSender = 0;
DynObject::DynObject(QObject* par) : QObject(par), event_filters(false) {
qApp->installEventFilter(this); }
// note: QADD-EVENT-FILTER will not work if EQL5 is not running on the UI thread
if(thread() == QApplication::instance()->thread()) {
qApp->installEventFilter(this); }}
int DynObject::qt_metacall(QMetaObject::Call c, int id, void** args) {
if(QMetaObject::InvokeMetaMethod == c) {