diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f3f0860..cc7003d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1,21 +1,21 @@ /** LICENSE ******************************************************************** - ** + ** ** smolbote: yet another qute browser ** Copyright (C) 2017 Xian Nox - ** + ** ** 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 3 of the License, 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. - ** + ** ** You should have received a copy of the GNU General Public License ** along with this program. If not, see <http://www.gnu.org/licenses/>. - ** + ** ******************************************************************************/ #include "mainwindow.h" @@ -84,10 +84,11 @@ MainWindow::MainWindow(Browser *instance, QUrl defaultUrl, QWidget *parent) : tabToolBar->addWidget(tabBar); connect(tabBar, SIGNAL(currentTabChanged(QWebEngineView*)), this, SLOT(handleTabChanged(QWebEngineView*))); - if(!defaultUrl.isEmpty()) + if(!defaultUrl.isEmpty()) { createNewTab(defaultUrl); - else + } else { createNewTab(settings.value("defaults/url", QUrl("http://duckduckgo.com")).toUrl()); + } } MainWindow::~MainWindow() @@ -115,10 +116,10 @@ void MainWindow::closeEvent(QCloseEvent *event) void MainWindow::about() { QMessageBox::about(this, tr("About"), tr("<h3>smolbote %1</h3>" - "<p><i>yet another Qute browser</i></p>" - "<p>Copyright (C) 2017 Xian Nox</p>" - "<p>This program comes with ABSOLUTELY NO WARRANTY. " - "This is free software, and you are welcome to redistribute it under the conditions set by the GNU GPLv3.</p>") + "<p><i>yet another Qute browser</i></p>" + "<p>Copyright (C) 2017 Xian Nox</p>" + "<p>This program comes with ABSOLUTELY NO WARRANTY. " + "This is free software, and you are welcome to redistribute it under the conditions set by the GNU GPLv3.</p>") .arg(qApp->applicationVersion())); } |