┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorAnthony Fieroni <[email protected]>2020-12-12 15:17:23 +0200
committerElvis Angelaccio <[email protected]>2021-01-10 21:54:45 +0000
commita73e81bf6af745623e7e92ba012522e34b2a312a (patch)
tree15395b60a09801af77b531c772ea10cdecc10df7 /src/views
parenteb4b0fb48050ab047eecf01ccabc595a8b34d141 (diff)
Open new tab placement option
Signed-off-by: Anthony Fieroni <[email protected]>
Diffstat (limited to 'src/views')
-rw-r--r--src/views/dolphinview.cpp6
-rw-r--r--src/views/dolphinview.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
index 71c16bf46..5ceed9c3e 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -945,7 +945,7 @@ void DolphinView::slotItemsActivated(const KItemSet& indexes)
const QUrl& url = openItemAsFolderUrl(item);
if (!url.isEmpty()) { // Open folders in new tabs
- Q_EMIT tabRequested(url, DolphinTabWidget::AfterLastTab);
+ Q_EMIT tabRequested(url);
} else {
items.append(item);
}
@@ -963,9 +963,9 @@ void DolphinView::slotItemMiddleClicked(int index)
const KFileItem& item = m_model->fileItem(index);
const QUrl& url = openItemAsFolderUrl(item);
if (!url.isEmpty()) {
- Q_EMIT tabRequested(url, DolphinTabWidget::AfterCurrentTab);
+ Q_EMIT tabRequested(url);
} else if (isTabsForFilesEnabled()) {
- Q_EMIT tabRequested(item.url(), DolphinTabWidget::AfterCurrentTab);
+ Q_EMIT tabRequested(item.url());
}
}
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h
index cc3409732..5dd65eb54 100644
--- a/src/views/dolphinview.h
+++ b/src/views/dolphinview.h
@@ -433,7 +433,7 @@ signals:
/**
* Is emitted if a new tab should be opened for the URL \a url.
*/
- void tabRequested(const QUrl& url, DolphinTabWidget::TabPlacement tabPlacement);
+ void tabRequested(const QUrl& url);
/**
* Is emitted if the view mode (IconsView, DetailsView,