diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index aac0c0cf..2143eca7 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -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.");