Bug 496414 - Need to rename folder twice to make it reflect in the tab title
Summary: Need to rename folder twice to make it reflect in the tab title
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-18 10:59 UTC by postix
Modified: 2025-01-13 11:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2024-11-18 10:59:08 UTC
STEPS TO REPRODUCE
1. Open Dolphin
2. Create a new folder "foo"
3. Create a new tab with Ctrl + T
4. Open the folder "foo"
5. Switch to the first tab, which is parent of "foo"
6. Rename "foo" to "foo 2"
7. Rename "foo 2" to "foo 3"

OBSERVED RESULT
6. The 2nd tab still says "foo"
7. Then 2nd tab now says "foo 2" instead of "foo 3"
8. And the so on ...

The renaming is immediately taken into account in the address bar though.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.7-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Akseli Lahtinen 2024-11-27 10:16:30 UTC
Can reproduce

dolphin 25.03.70
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Bug Janitor Service 2024-11-27 12:13:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/865
Comment 3 Akseli Lahtinen 2024-11-28 10:46:37 UTC
Git commit 6c7c04718b573ed9c382e289c361acbe6bd456b9 by Akseli Lahtinen.
Committed on 28/11/2024 at 10:46.
Pushed by akselmo into branch 'master'.

DolphinTabPage: Update container view url on redirection

On url redirect, we should check which container url is being changed
and then update it accordingly. This makes sure the tab name is
updated.

We also should not disconnect redirection on view activation
since the redirection might be used by the other split. 
The disconnection is done in `setSplitViewEnabled` instead.

This allows us to update the tab name every time the url changes,
even inside a splitview where the split which name is changed is
not active.

M  +14   -4    src/dolphintabpage.cpp

https://invent.kde.org/system/dolphin/-/commit/6c7c04718b573ed9c382e289c361acbe6bd456b9
Comment 4 postix 2025-01-13 11:44:11 UTC
*** Bug 437603 has been marked as a duplicate of this bug. ***