mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +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:
parent
b95a8be600
commit
e49ea20f33
|
@ -141,7 +141,7 @@ QVariant WebPage::execJavaScript(const QString &scriptSource, quint32 worldId, i
|
|||
}
|
||||
});
|
||||
|
||||
loop->exec();
|
||||
loop->exec(QEventLoop::ExcludeUserInputEvents);
|
||||
delete loop;
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue
Block a user