diff options
| author | Alexander Saoutkin <[email protected]> | 2019-09-02 23:15:08 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-09-02 23:15:08 +0200 |
| commit | a6403716439ae72bfdf86a14af94ea9d212f08ee (patch) | |
| tree | c2e41bbdfa5278cdac5e3a605d7cdc8261dff17a /src/dolphintabwidget.h | |
| parent | 56b3059f774ae5917185d91a380c9f0a95e7584f (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/dolphintabwidget.h')
| -rw-r--r-- | src/dolphintabwidget.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h index 3e8301725..7eb001b21 100644 --- a/src/dolphintabwidget.h +++ b/src/dolphintabwidget.h @@ -80,9 +80,13 @@ public: /** * @param url The URL that we would like - * @return index of the tab with the desired URL. returns -1 if not found + * @return a QPair with first containing the index of the tab with the + * desired URL or -1 if not found. Second says true if URL is in primary + * view container, false otherwise. False means the URL is in the secondary + * view container, unless first == -1. In that case the value of second + * is meaningless. */ - int getIndexByUrl(const QUrl& url) const; + QPair<int, bool> getIndexByUrl(const QUrl& url) const; signals: /** |
