summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2013-07-31 19:53:28 +1000
committerTim Mayberry <mojofunk@gmail.com>2013-10-21 10:10:40 +1000
commitb540d0e4bc858c22395c1960cf07f006cff5da01 (patch)
treeefee1f2e8c1091271d65ab724d005c58e5aadff0 /gtk2_ardour
parent53bf1a65e8b0ac701fb101233a127006a0e5c9a1 (diff)
Fix check button handling in Memory Warning Dialog
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc15
-rw-r--r--gtk2_ardour/ardour_ui.h1
2 files changed, 5 insertions, 11 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index ec911a4fcd..4902968db8 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -828,13 +828,6 @@ ARDOUR_UI::starting ()
}
void
-ARDOUR_UI::no_memory_warning ()
-{
- XMLNode node (X_("no-memory-warning"));
- Config->add_instant_xml (node);
-}
-
-void
ARDOUR_UI::check_memory_locking ()
{
#ifdef __APPLE__
@@ -890,9 +883,6 @@ ARDOUR_UI::check_memory_locking ()
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();
@@ -903,6 +893,11 @@ ARDOUR_UI::check_memory_locking ()
editor->ensure_float (msg);
msg.run ();
+
+ if (cb.get_active()) {
+ XMLNode node (X_("no-memory-warning"));
+ Config->add_instant_xml (node);
+ }
}
}
}
diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h
index 0253c1ec0a..ff324fd6f9 100644
--- a/gtk2_ardour/ardour_ui.h
+++ b/gtk2_ardour/ardour_ui.h
@@ -692,7 +692,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
bool first_idle ();
- void no_memory_warning ();
void check_memory_locking ();
bool check_audioengine();