diff --git a/kmymoney/views/kmymoneywebpage.cpp b/kmymoney/views/kmymoneywebpage.cpp index ade2c809d..b33075cba 100644 --- a/kmymoney/views/kmymoneywebpage.cpp +++ b/kmymoney/views/kmymoneywebpage.cpp @@ -1,47 +1,49 @@ /*************************************************************************** kmymoneywebpage.cpp ------------------- copyright : (C) 2017 by Łukasz Wojniłowicz ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include #include "kmymoneywebpage.h" // ---------------------------------------------------------------------------- // QT Includes // ---------------------------------------------------------------------------- // KDE Includes // ---------------------------------------------------------------------------- // Project Includes #ifdef ENABLE_WEBENGINE bool MyQWebEnginePage::acceptNavigationRequest(const QUrl &url, NavigationType type, bool) { - if (type == NavigationTypeLinkClicked) + if (type == NavigationTypeLinkClicked) { emit urlChanged(url); - return false; + return false; + } + return true; } #else #include bool MyQWebEnginePage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type) { Q_UNUSED(frame); if (type == NavigationTypeLinkClicked) { emit linkClicked(request.url()); return false; } return true; } #endif