Bug 378447 - Rename an item and click somewhere else discards changes
Summary: Rename an item and click somewhere else discards changes
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.9.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-04 22:00 UTC by Gregor Mi
Modified: 2017-04-05 10:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Mi 2017-04-04 22:00:02 UTC
ACTUAL:
If I press F2 to rename a file in the folder view and click somewhere else then the changes I made are silently discarded. If I press ENTER then the changes are saved correctly.

EXPECTED:
If the edit operation ends the changes the user made should be either saved or there should be a message that asks if it is ok to discard the changes.
Comment 1 Kai Uwe Broulik 2017-04-05 08:47:21 UTC
Oh, right, I was thinking the wrong way. Escape should cancel it but Return and pressing outside should accept.
Comment 2 Kai Uwe Broulik 2017-04-05 10:27:50 UTC
Git commit 45bea58f9bfeedcc06ec8ed086215287c2737155 by Kai Uwe Broulik.
Committed on 05/04/2017 at 10:27.
Pushed by broulik into branch 'master'.

[Folder View] Rename on clicking outside

When renaming a file and clicking elsewhere, actually rename instead of canceling. This is what Dolphin and other file managers do.
When pressing Escape, closing the popup, or starting to scroll, the rename operation is cancelled as before.

Differential Revision: https://phabricator.kde.org/D5305

M  +9    -4    containments/desktop/package/contents/ui/FolderView.qml

https://commits.kde.org/plasma-desktop/45bea58f9bfeedcc06ec8ed086215287c2737155