diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-08-04 13:12:32 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-08-04 13:12:32 +0200 |
commit | a85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91 (patch) | |
tree | 81cc123c4afbaf726fbc4a8a6b87d50732432b4b /src/mainwindow.cpp | |
parent | Updated documentation (diff) | |
download | smolbote-a85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91.tar.xz |
Profile window fixes
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bda8bdb..856298d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -109,7 +109,7 @@ MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) : if(!defaultUrl.isEmpty()) { newTab(defaultUrl); } else { - newTab(sSettings->value("general.homepage").toUrl()); + newTab(tabBar->profile()->homepage()); } resize(sSettings->value("window.width").toInt(), sSettings->value("window.height").toInt()); @@ -155,7 +155,7 @@ void MainWindow::newTab(const QUrl &url) if(!url.isEmpty()) { tabBar->addTab(url); } else { - tabBar->addTab(sSettings->value("general.newtab").toUrl()); + tabBar->addTab(tabBar->profile()->newtab()); } } @@ -241,13 +241,3 @@ void MainWindow::handleTitleUpdated(const QString &title) { setWindowTitle(sSettings->value("window.title").toString().replace("title", title).replace("profile", tabBar->profile()->name())); } - -void MainWindow::profileAction() -{ - tabBar->profile()->dialog()->showProfile(); -} - -void MainWindow::cookiesAction() -{ - tabBar->profile()->dialog()->showCookies(); -} |