aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-21 21:17:08 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-21 13:49:54 +0100
commit2091b038ef2a23a85d30d056307b3c405c416256 (patch)
tree36520f2e35228fd1acdf469c68a04be5ec93c42c /src/mainwindow.cpp
parentef592c41848ded6253502a536abedb298aed1105 (diff)
downloadkristall-2091b038ef2a23a85d30d056307b3c405c416256.tar.gz
Added '+' button to tab bar
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 0bc4d90..1d9dfb0 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -15,6 +15,7 @@
#include "ioutil.hpp"
#include "kristall.hpp"
+#include "widgets/browsertabbar.hpp"
#include "dialogs/certificatemanagementdialog.hpp"
@@ -92,6 +93,10 @@ MainWindow::MainWindow(QApplication * app, QWidget *parent) :
this->ui->favourites_view->setContextMenuPolicy(Qt::CustomContextMenu);
this->ui->history_view->setContextMenuPolicy(Qt::CustomContextMenu);
+
+ connect(this->ui->browser_tabs->tab_bar, &BrowserTabBar::on_newTabClicked, this, [this]() {
+ this->addEmptyTab(true, true);
+ });
}
MainWindow::~MainWindow()