┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorAlexander Saoutkin <[email protected]>2019-09-02 23:15:08 +0200
committerElvis Angelaccio <[email protected]>2019-09-02 23:15:08 +0200
commita6403716439ae72bfdf86a14af94ea9d212f08ee (patch)
treec2e41bbdfa5278cdac5e3a605d7cdc8261dff17a /src/dolphinmainwindow.cpp
parent56b3059f774ae5917185d91a380c9f0a95e7584f (diff)
Fixing bugs in new folders in tabs feature
Summary: Fixing bug where urls in secondary view containers would not be considered for the open new folders in tabs feature. Test Plan: Manual testing. Testing for no regressions. Testing that URL is found if in secondary view container Reviewers: elvisangelaccio Reviewed By: elvisangelaccio Subscribers: kfm-devel, ngraham Tags: #dolphin Differential Revision: https://phabricator.kde.org/D23655
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 19f790662..c9ed9c5cd 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -2089,7 +2089,7 @@ void DolphinMainWindow::UndoUiInterface::jobError(KIO::Job* job)
bool DolphinMainWindow::isUrlOpen(const QString& url)
{
- if (m_tabWidget->getIndexByUrl(QUrl::fromUserInput((url))) >= 0) {
+ if (m_tabWidget->getIndexByUrl(QUrl::fromUserInput((url))).first >= 0) {
return true;
} else {
return false;