aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browsertab.cpp')
-rw-r--r--src/browsertab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp
index c979b4c..8c6fb37 100644
--- a/src/browsertab.cpp
+++ b/src/browsertab.cpp
@@ -678,7 +678,7 @@ void BrowserTab::on_fav_button_clicked()
toggleIsFavourite(this->ui->fav_button->isChecked());
}
-void BrowserTab::on_text_browser_anchorClicked(const QUrl &url)
+void BrowserTab::on_text_browser_anchorClicked(const QUrl &url, bool open_in_new_tab)
{
// Ctrl scheme is *always* the current tab, it's
// used for fake-buttons
@@ -749,7 +749,7 @@ void BrowserTab::on_text_browser_anchorClicked(const QUrl &url)
if (support == ProtocolSetup::Enabled)
{
- if(this->ui->text_browser->last_button == Qt::MiddleButton) {
+ if(open_in_new_tab) {
mainWindow->addNewTab(false, real_url);
} else {
this->navigateTo(real_url, PushImmediate);