Bug 456312

Summary: Opening a folder that is already opened in Dolphin should focus its window no matter the option "Open new folders in tabs"
Product: [Applications] dolphin Reporter: cipricus <cipricus>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, cipricus, kfm-devel, nate, postix
Priority: NOR Keywords: usability
Version: 21.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description cipricus 2022-07-04 10:04:56 UTC
If the option "Open new folders in tabs" is enabled: clicking to open on the desktop a folder that is already open in Dolphin focuses that window.

If the option "Open new folders in tabs" is disabled: clicking to open on the desktop a folder that is already open in Dolphin opens that folder in a new window.

That is unexpected: the option to open a new folder in a tab or a window should not affect the fact that if a folder is opened in Dolphin its window should be focused instead of it being opened in a new window .

Focus an already opened window/tab  should always happen or, if that's not true, it's incoherent to have that focus when the option "Open new folders in tabs" is enabled: logically that focus should happen in both cases or in none.



STEPS TO REPRODUCE
1. enable or disable the Settings  > "Startup"  >  "Open new folders in tabs" option


OBSERVED RESULT

1. if enabled, clicking to open on the desktop a folder that is already open in Dolphin focuses that window.

2, if disabled, clicking to open on the desktop a folder that is already open in Dolphin opens that folder in a new window


EXPECTED RESULT

That option should not change the fact that the window/tab of an already open folder should be focused (instead of a new one being opened) when opening that folder again.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version:  5.92.0
Qt Version: 5.15.3
Comment 1 cipricus 2022-07-04 10:13:14 UTC
Having a folder on the desktop called "test" which is not opened in Dolphin: double clicking it a first time opens a new tab or a new window, based on the option Settings  > "Startup"  >  "Open new folders in tabs". Double clicking it a second time should either focus the already opened tab/window (no matter the option Settings  > "Startup"  >  "Open new folders in tabs"), or open a new tab or a new window (depending on the option Settings  > "Startup"  >  "Open new folders in tabs"). But the option Settings  > "Startup"  >  "Open new folders in tabs" should not affect focus.