make "OK" button in memory-limit dialog be the default widget so that return closes the dialog

git-svn-id: svn://localhost/ardour2/branches/3.0@13688 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-12-19 22:16:58 +00:00
parent 2b8fc2a43b
commit e9f1b1287b

View File

@ -686,12 +686,14 @@ ARDOUR_UI::check_memory_locking ()
"and it is normally controlled by /etc/security/limits.conf"),
PROGRAM_NAME).c_str());
msg.set_default_response (RESPONSE_OK);
VBox* vbox = msg.get_vbox();
HBox hbox;
CheckButton cb (_("Do not show this window again"));
cb.signal_toggled().connect (sigc::mem_fun (*this, &ARDOUR_UI::no_memory_warning));
hbox.pack_start (cb, true, false);
vbox->pack_start (hbox);
cb.show();