]> cloud.milkyroute.net Git - dolphin.git/commit
fix incorrect view reset when unmounting similarly-named devices
authorVladislav Kachegov <vladkachegov@gmail.com>
Fri, 23 May 2025 09:46:54 +0000 (12:46 +0300)
committerFelix Ernst <felixernst@kde.org>
Sat, 31 May 2025 22:58:47 +0000 (00:58 +0200)
commit3e4d9ca10c33746cb545e930886491e6a1227e6e
tree1f6b018feb69c2196ae153fbd6b9d08b94895743
parent66fcfc24b5d8aa7f09432ecced7b1dc8d6c1dfe1
fix incorrect view reset when unmounting similarly-named devices

Previously, unmounting a device would incorrectly reset views containing:
- Paths with similar names (e.g. "/media/disk" and "/media/disk_2")
- Substrings of the mounted path

Now only resets views showing either:
1. The exact mounted path (e.g. "/media/disk")
2. Its subdirectories (e.g. "/media/disk/docs")
src/dolphinmainwindow.cpp