mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
safe default button focus for deleting playlists
This commit is contained in:
parent
b456060388
commit
920c56775f
1 changed files with 4 additions and 1 deletions
|
|
@ -4161,10 +4161,13 @@ Editor::playlist_deletion_dialog (boost::shared_ptr<Playlist> pl)
|
||||||
|
|
||||||
dialog.add_button (_("Delete All Unused"), RESPONSE_YES); // needs clarification. this and all remaining ones
|
dialog.add_button (_("Delete All Unused"), RESPONSE_YES); // needs clarification. this and all remaining ones
|
||||||
dialog.add_button (_("Delete Playlist"), RESPONSE_ACCEPT);
|
dialog.add_button (_("Delete Playlist"), RESPONSE_ACCEPT);
|
||||||
dialog.add_button (_("Keep Playlist"), RESPONSE_REJECT);
|
Button* keep = dialog.add_button (_("Keep Playlist"), RESPONSE_REJECT);
|
||||||
dialog.add_button (_("Keep Remaining"), RESPONSE_NO); // ditto
|
dialog.add_button (_("Keep Remaining"), RESPONSE_NO); // ditto
|
||||||
dialog.add_button (_("Cancel"), RESPONSE_CANCEL);
|
dialog.add_button (_("Cancel"), RESPONSE_CANCEL);
|
||||||
|
|
||||||
|
// by default gtk uses the left most button
|
||||||
|
keep->grab_focus ();
|
||||||
|
|
||||||
switch (dialog.run ()) {
|
switch (dialog.run ()) {
|
||||||
case RESPONSE_NO:
|
case RESPONSE_NO:
|
||||||
/* keep this and all remaining ones */
|
/* keep this and all remaining ones */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue