]> cloud.milkyroute.net Git - dolphin.git/commit
Change in "Open in new tab" feature in Dolphin
authorEmirald Mateli <aldo.mateli@gmail.com>
Sun, 11 Jun 2017 17:26:52 +0000 (19:26 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 11 Jun 2017 17:28:39 +0000 (19:28 +0200)
commitec9f4ed17c9c71078eac838060024aef5ca8b2c3
treea44206e3c6e8012f07598da330c9422dc7a5ffe4
parentc85ca114553c198af79eedacdb6b40ac4cab20e0
Change in "Open in new tab" feature in Dolphin

Summary:
This patch proposes a change to the "open in new tab" feature.

The "open in new tab" feature will try to open selected items (files or folders) in a new tab, however, if there are no valid items to be opened in a new tab then nothing will happen, making it look like a bug. This patch adds the functionality that when there are no valid items(files or folders) to be opened in a new tab the current folder will be opened.

Test Plan:
1. Select a file(pdf, text, image etc) in Dolphin
2. Click on the "Open in new tab" toolbar button

Expected: since the file is not a valid target to open in a new tab, the current directory should be opened (as is the case where selection is empty)
Actual: Nothing happens after the button is pressed

Reviewed By: #dolphin, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D6182
src/dolphinmainwindow.cpp