1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

Fixed new tab not opening on mouse mid button click (#2244)

Whenever the user pressed the middle button the mouse press handler
in WebPage issued an 'execJavaScript' which has its own event loop
causing the mouse release handler to be called before the field
'm_clickedUrl' get the url in the first handler. Since this field
is used to guard the logic in the second handler the new tab wasn't
opening.

Closes #2238
This commit is contained in:
José Rios 2017-03-12 16:57:19 +00:00 committed by David Rosca
parent 690eb2c447
commit 85832642db

View File

@ -120,7 +120,7 @@ QVariant WebPage::execJavaScript(const QString &scriptSource, quint32 worldId, i
}
});
loop->exec();
loop->exec(QEventLoop::ExcludeUserInputEvents);
delete loop;
return result;