Bug 474626 - Pointless error message when deleting folder from folder panel
Summary: Pointless error message when deleting folder from folder panel
Status: RESOLVED INTENTIONAL
Alias: None
Product: dolphin
Classification: Applications
Component: panels: folders (show other bugs)
Version: 23.08.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-17 17:51 UTC by Philipp Maierhöfer
Modified: 2023-10-01 10:33 UTC (History)
2 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 Philipp Maierhöfer 2023-09-17 17:51:09 UTC
SUMMARY
An unnessesary and distracting error message is printed when the active folder is deleted using the folder panel.

STEPS TO REPRODUCE
1. Show the folder panel (F7) if it's not already shown.
2. Left-click on a folder in the panel to enter it.
3. Then right-click on the same folder and select "delete".

OBSERVED RESULT
An error message is printed: "Current location changed, ‘/path/to/folder’ is no longer accessible."

EXPECTED RESULT
Don't print an error. It's expected behaviour that the folder is no more accessible after explicitly deleting it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbeweed 20230908
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Apart from the error message, the behaviour is as expected: the active folder is moving one step up in the hierarchy.
Comment 1 Felix Ernst 2023-10-01 10:33:27 UTC
I think a user definitely should be made aware through a message that the directory was changed after a deletion. This might seem unnecessary in the specific example situation you explained, but keep in mind that a folder might also be deleted by some other process that the user might not have triggered personally.

>EXPECTED RESULT
>Don't print an error. It's expected behaviour that the folder
>is no more accessible after explicitly deleting it.

The message is mostly about making users aware that the location changed and not so much about letting them know that the folder was deleted. I understand that to you it might be expected that the parent folder would instead be shown, but an inattentive user might be surprised by this and then act on the wrong folder because they didn't notice that the location has changed without their explicit user input. The error message therefore seems necessary to me.

I hope you understand and won't mind me marking this as "RESOLVED INTENTIONAL".