mirror of
https://gitlab.com/eql/EQL5.git
synced 2026-01-06 09:12:47 -08:00
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:
parent
dab9b53283
commit
b20eed0306
1 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,9 @@ int DynObject::event_filter_handle = 0;
|
||||||
QObject* DynObject::currentSender = 0;
|
QObject* DynObject::currentSender = 0;
|
||||||
|
|
||||||
DynObject::DynObject(QObject* par) : QObject(par), event_filters(false) {
|
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) {
|
int DynObject::qt_metacall(QMetaObject::Call c, int id, void** args) {
|
||||||
if(QMetaObject::InvokeMetaMethod == c) {
|
if(QMetaObject::InvokeMetaMethod == c) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue