summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-05 15:48:35 +0100
committerRobin Gareus <robin@gareus.org>2016-01-05 15:48:35 +0100
commit920c56775f068ed29fcbfbd0b8235b8389c1a9bc (patch)
tree5f8e4c038127df99b09d449b6807989391213c10 /gtk2_ardour
parentb4560603882e2a5c6652cf086bee34ab7127131b (diff)
safe default button focus for deleting playlists
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index abe979c7e1..a77fafe35e 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -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 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 (_("Cancel"), RESPONSE_CANCEL);
+ // by default gtk uses the left most button
+ keep->grab_focus ();
+
switch (dialog.run ()) {
case RESPONSE_NO:
/* keep this and all remaining ones */