mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-06 02:30:31 -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;
|
||||
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue