Fix check button handling in Memory Warning Dialog
This commit is contained in:
parent
53bf1a65e8
commit
b540d0e4bc
@ -827,13 +827,6 @@ ARDOUR_UI::starting ()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ARDOUR_UI::no_memory_warning ()
|
|
||||||
{
|
|
||||||
XMLNode node (X_("no-memory-warning"));
|
|
||||||
Config->add_instant_xml (node);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ARDOUR_UI::check_memory_locking ()
|
ARDOUR_UI::check_memory_locking ()
|
||||||
{
|
{
|
||||||
@ -890,9 +883,6 @@ ARDOUR_UI::check_memory_locking ()
|
|||||||
VBox* vbox = msg.get_vbox();
|
VBox* vbox = msg.get_vbox();
|
||||||
HBox hbox;
|
HBox hbox;
|
||||||
CheckButton cb (_("Do not show this window again"));
|
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);
|
hbox.pack_start (cb, true, false);
|
||||||
vbox->pack_start (hbox);
|
vbox->pack_start (hbox);
|
||||||
cb.show();
|
cb.show();
|
||||||
@ -903,6 +893,11 @@ ARDOUR_UI::check_memory_locking ()
|
|||||||
|
|
||||||
editor->ensure_float (msg);
|
editor->ensure_float (msg);
|
||||||
msg.run ();
|
msg.run ();
|
||||||
|
|
||||||
|
if (cb.get_active()) {
|
||||||
|
XMLNode node (X_("no-memory-warning"));
|
||||||
|
Config->add_instant_xml (node);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -692,7 +692,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
|||||||
|
|
||||||
bool first_idle ();
|
bool first_idle ();
|
||||||
|
|
||||||
void no_memory_warning ();
|
|
||||||
void check_memory_locking ();
|
void check_memory_locking ();
|
||||||
|
|
||||||
bool check_audioengine();
|
bool check_audioengine();
|
||||||
|
Loading…
Reference in New Issue
Block a user