diff options
| author | Alexander Saoutkin <[email protected]> | 2019-06-23 13:22:41 +0200 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2019-06-23 13:27:25 +0200 |
| commit | 2647dc47d4ba636e4d1dc350bc48c7983ba0fc93 (patch) | |
| tree | cf747956bd023d64b8f657b21023381e28dc65e0 /src/global.cpp | |
| parent | 0a06b1764cd309e4ec5805eb78ac77a9ca0de4fd (diff) | |
Adding option to open externally called folder in a new tab
Summary:
Adds an option to open externally called folder in a new tab.
By default this option is enabled
Test Plan:
If option selected:
1. All valid arguments passed to Dolphin should be opened in tabs of an instance(s) (if it exists). Duplicate tabs just change activation to current tab.
If option not selected:
1. All calls to Dolphin result in a new instance being opened
This option does not require Dolphin to be restarted to take effect.
Reviewers: #dolphin, elvisangelaccio, ngraham
Reviewed By: #dolphin, ngraham
Subscribers: broulik, ngraham, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D21736
Diffstat (limited to 'src/global.cpp')
| -rw-r--r-- | src/global.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global.cpp b/src/global.cpp index 42044c97d..4547faced 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -73,7 +73,7 @@ void Dolphin::openNewWindow(const QList<QUrl> &urls, QWidget *window, const Open bool Dolphin::attachToExistingInstance(const QList<QUrl>& inputUrls, bool openFiles, bool splitView, const QString& preferredService) { // TODO: once Wayland clients can raise or activate themselves remove check from conditional - if (KWindowSystem::isPlatformWayland() || inputUrls.isEmpty()) { + if (KWindowSystem::isPlatformWayland() || inputUrls.isEmpty() || !GeneralSettings::openExternallyCalledFolderInNewTab()) { return false; } |
