Process events from the event loop before typing the first char.

This commit is contained in:
Felix Geyer 2015-03-13 19:45:57 +01:00
parent 2dfc740782
commit b86b640860

View File

@ -148,6 +148,8 @@ void AutoType::performAutoType(const Entry* entry, QWidget* hideWindow, const QS
window = m_plugin->activeWindow();
}
QCoreApplication::processEvents(QEventLoop::AllEvents, 10);
Q_FOREACH (AutoTypeAction* action, actions) {
if (m_plugin->activeWindow() != window) {
qWarning("Active window changed, interrupting auto-type.");