1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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 b95a8be600
commit e49ea20f33

View File

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