Attach-to-process dialog: add "Cancel" button, relabel "Ok" to "Attach"
ClosedPublic

Authored by kossebau on Feb 26 2017, 10:58 PM.

Details

Summary

Having an explicit button to Cancel instead of just the option to close
the window follows other dialogs.
Labelling the accepting button with "Attach" instead of "Ok" makes it
more obvious what happens on a click, as akso recommended by
https://community.kde.org/KDE_Visual_Design_Group/HIG/Labels

Diff Detail

Repository
R32 KDevelop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Feb 26 2017, 10:58 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptFeb 26 2017, 10:58 PM
flherne accepted this revision.Feb 26 2017, 11:17 PM
flherne added a subscriber: flherne.

Makes sense.

There's actually a pre-existing crashybug here, but not directly related to the patch; if you don't feel like fixing it I'll try in a few days.

debuggers/common/dialogs/processselection.cpp
98 ↗(On Diff #11868)

This can happen when unsetting the selection (ctrl-click on the selected row).
Leaving the button enabled in this case causes KDevelop to crash when it's clicked.

(not introduced by you, I just thought "wait a moment..." and tried it)

This revision is now accepted and ready to land.Feb 26 2017, 11:17 PM
This revision was automatically updated to reflect the committed changes.