diff --git a/core/tests/dialogs/browser.cpp b/core/tests/dialogs/browser.cpp index 4ee229cfa7..d9d599e492 100644 --- a/core/tests/dialogs/browser.cpp +++ b/core/tests/dialogs/browser.cpp @@ -1,51 +1,51 @@ /* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2017-05-25 * Description : a stand alone tool to browse a web page. * * Copyright (C) 2017-2020 by Gilles Caulier * * 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, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ // Qt includes #include #include #include // Local includes #include "webbrowserdlg.h" using namespace Digikam; int main(int argc, char* argv[]) { QApplication a(argc, argv); if (argc == 1) { qDebug() << "browser - web page url to show"; qDebug() << "Usage: url top open"; return -1; } - WebBrowserDlg browser(QUrl(QString::fromUtf8(argv[1]))); + WebBrowserDlg browser(QUrl(QString::fromUtf8(argv[1])), nullptr); browser.show(); return a.exec(); }