ibus: avoid a crash when context is not ready
This amends 84cf0e2be54d9ad183db063fd429b792c67edd18 Pick-to: 6.7 6.6 6.5 Change-Id: Ia560f785764d4ba0e4aa66943effb9f16a38e699 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Inho Lee <inho.lee@qt.io>
This commit is contained in:
parent
85108e1938
commit
0d923c2097
@ -125,7 +125,6 @@ QIBusPlatformInputContext::QIBusPlatformInputContext ()
|
|||||||
if (ok && enableSync == 1)
|
if (ok && enableSync == 1)
|
||||||
m_eventFilterUseSynchronousMode = true;
|
m_eventFilterUseSynchronousMode = true;
|
||||||
}
|
}
|
||||||
d->context->setClientCommitPreedit(QIBusPropTypeClientCommitPreedit(true));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QIBusPlatformInputContext::~QIBusPlatformInputContext (void)
|
QIBusPlatformInputContext::~QIBusPlatformInputContext (void)
|
||||||
@ -719,6 +718,8 @@ void QIBusPlatformInputContextPrivate::createBusProxy()
|
|||||||
};
|
};
|
||||||
context->SetCapabilities(IBUS_CAP_PREEDIT_TEXT|IBUS_CAP_FOCUS|IBUS_CAP_SURROUNDING_TEXT);
|
context->SetCapabilities(IBUS_CAP_PREEDIT_TEXT|IBUS_CAP_FOCUS|IBUS_CAP_SURROUNDING_TEXT);
|
||||||
|
|
||||||
|
context->setClientCommitPreedit(QIBusPropTypeClientCommitPreedit(true));
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
qDebug(">>>> bus connected!");
|
qDebug(">>>> bus connected!");
|
||||||
busConnected = true;
|
busConnected = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user