Use appropriate icon for a cancel button that will ask for a new name
ClosedPublic

Authored by ngraham on Aug 5 2018, 10:10 PM.

Details

Summary

When a dialog has a cancel button that says, "Enter a different name", give that button the edit-rename icon instead of the standard cancel icon.

Test Plan

Diff Detail

Repository
R241 KIO
Branch
rename-icons (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1548
Build 1566: arc lint + arc unit
ngraham created this revision.Aug 5 2018, 10:10 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 5 2018, 10:10 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ngraham requested review of this revision.Aug 5 2018, 10:10 PM
ngraham edited the summary of this revision. (Show Details)Aug 5 2018, 10:11 PM
ngraham edited the test plan for this revision. (Show Details)
dfaure added a subscriber: dfaure.Aug 6 2018, 7:33 AM

Bug in the commit log? You meant edit-rename rather than edit-delete, right?

ngraham edited the summary of this revision. (Show Details)Aug 6 2018, 12:51 PM

Yes indeed, oops. Corrected.

broulik added a subscriber: broulik.Aug 6 2018, 1:19 PM
broulik added inline comments.
src/filewidgets/knewfilemenu.cpp
416
ngraham added inline comments.Aug 6 2018, 1:23 PM
src/filewidgets/knewfilemenu.cpp
416

Addressed separately in D14650.

abetts added a subscriber: abetts.Aug 6 2018, 2:08 PM

Could the message have 2 buttons? A cancel and an "Enter a different name". That way, if the user inadvertently entered that reserved name can cancel the action still.

Hmm, I'm not sure a cancel button makes sense here because that would end the process of creating the folder. If you chose an invalid name, presumably you still want to create the folder.

abetts added a comment.Aug 6 2018, 2:14 PM

Hmm, I'm not sure a cancel button makes sense here because that would end the process of creating the folder. If you chose an invalid name, presumably you still want to create the folder.

I am mostly trying to think of unintended actions upon unintended actions. Thinking maybe that a less knowledgeable user just took the wrong path in trying to complete an action.

Hmm, I'm not sure a cancel button makes sense here because that would end the process of creating the folder. If you chose an invalid name, presumably you still want to create the folder.

I am mostly trying to think of unintended actions upon unintended actions. Thinking maybe that a less knowledgeable user just took the wrong path in trying to complete an action.

Now that I think about it, you're right. I'll submit a patch for that once my current crop of patches are accepted and landed. Wanna accept this one?

abetts added a comment.Aug 6 2018, 2:37 PM

Hmm, I'm not sure a cancel button makes sense here because that would end the process of creating the folder. If you chose an invalid name, presumably you still want to create the folder.

I am mostly trying to think of unintended actions upon unintended actions. Thinking maybe that a less knowledgeable user just took the wrong path in trying to complete an action.

Now that I think about it, you're right. I'll submit a patch for that once my current crop of patches are accepted and landed. Wanna accept this one?

Yes, no problem! Thanks for taking my suggestion.

abetts accepted this revision.Aug 6 2018, 2:37 PM
This revision is now accepted and ready to land.Aug 6 2018, 2:37 PM
ngraham closed this revision.Aug 6 2018, 10:30 PM

Hmm, I'm not sure a cancel button makes sense here because that would end the process of creating the folder. If you chose an invalid name, presumably you still want to create the folder.

I am mostly trying to think of unintended actions upon unintended actions. Thinking maybe that a less knowledgeable user just took the wrong path in trying to complete an action.

Now that I think about it, you're right. I'll submit a patch for that once my current crop of patches are accepted and landed. Wanna accept this one?

Yes, no problem! Thanks for taking my suggestion.

See D14663: Give the "invalid directory name" dialog a cancel button