Commit a4292cf0 authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

prevent excessive tab opening

Without this, KIO::highlightInFileManager() will open additional tab
even if file to be highlighted is already present in current view
parent 7fed7c97
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment