Skip to content

Truly independent web browser

Tests/UI/Qt: Stop processing events from inside the dropdown's menu loop

Jelle Raaijmakersef22931735af
diff --git a/Tests/UI/Qt/TestSelectDropdown.cpp b/Tests/UI/Qt/TestSelectDropdown.cpp
index 57bdf9a1ca3..2edf18e7fbe 100644
--- a/Tests/UI/Qt/TestSelectDropdown.cpp
+++ b/Tests/UI/Qt/TestSelectDropdown.cpp
@@ -42,7 +42,6 @@ void send_key(QWidget& widget, int key)
QApplication::sendEvent(&widget, &press);
QKeyEvent release { QEvent::KeyRelease, key, Qt::NoModifier };
QApplication::sendEvent(&widget, &release);
- QApplication::processEvents();
}
// open() runs the menu's own event loop until the menu closes, so the interaction is queued before the call and runs