From a85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 4 Aug 2017 13:12:32 +0200 Subject: Profile window fixes --- src/mainwindow.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/mainwindow.cpp') 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(); -} -- cgit v1.2.1