make "OK" button in memory-limit dialog be the default widget so that return closes...
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 19 Dec 2012 22:16:58 +0000 (22:16 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 19 Dec 2012 22:16:58 +0000 (22:16 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13688 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/ardour_ui.cc

index 831e95c997a851c9a12c02fa90051b835439a66d..07a57dfd32dc54be7a4bce3f7c491ce0dbdf8ba3 100644 (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();