diff options
| author | Andrey Butirsky <[email protected]> | 2022-05-18 15:52:26 +0300 |
|---|---|---|
| committer | Andrey Butirsky <[email protected]> | 2022-05-24 17:11:37 +0000 |
| commit | a4292cf0680237719b32cb3ad8cc58540f7701b2 (patch) | |
| tree | d60b7bc0894f05020b2b5c28a9f5e92f4d9f6cac /src | |
| parent | 7fed7c977725eb52acb86e1b5326dcfb8faac9a7 (diff) | |
prevent excessive tab opening
Without this, KIO::highlightInFileManager() will open additional tab
even if file to be highlighted is already present in current view
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphintabwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp index 254e654a7..5586c9df2 100644 --- a/src/dolphintabwidget.cpp +++ b/src/dolphintabwidget.cpp @@ -236,7 +236,7 @@ void DolphinTabWidget::openFiles(const QList<QUrl>& files, bool splitView) // directories are shown inside one tab (see openDirectories()). QList<QUrl> dirs; for (const QUrl& url : files) { - const QUrl dir(url.adjusted(QUrl::RemoveFilename)); + const QUrl dir(url.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash)); if (!dirs.contains(dir)) { dirs.append(dir); } |
