fix incorrect view reset when unmounting similarly-named devices
fix incorrect view reset when unmounting similarly-named devices
Problem
When unmounting a device, Dolphin could incorrectly reset views showing similarly-named paths due to substring matching.
Example of the issue
- With two mounted devices:
/media/vk/test_disk
/media/vk/test_disk_2
- Unmounting
/media/vk/test_disk
would incorrectly reset both views
Solution
Now properly detects views showing either:
- The exact mounted path
- Its subdirectories
Testing procedure
- Mount two devices:
/media/vk/test_disk
/media/vk/test_disk_2
- Open both in separate views
- Unmount
/media/vk/test_disk
Results
Check | Before | After |
---|---|---|
Behavior | Both views reset | Only correct view resets |
Video | unmount_before | unmount_after |
Edited by Vladislav Kachegov