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

Fix build with older GCC

Closes #1790
This commit is contained in:
David Rosca 2015-12-06 16:09:04 +01:00
parent 072f459ba5
commit 4144fc9827

View File

@ -112,7 +112,7 @@ QVariant WebPage::execJavaScript(const QString &scriptSource, int timeout)
{
QPointer<QEventLoop> loop = new QEventLoop;
QVariant result;
QTimer::singleShot(timeout, loop, &QEventLoop::quit);
QTimer::singleShot(timeout, loop.data(), &QEventLoop::quit);
runJavaScript(scriptSource, [loop, &result](const QVariant &res) {
if (loop && loop->isRunning()) {