mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
fixes for various bugs including dangling ref to route in session, opening sessions from the NSD, closing a session leaving dangling pointers etc etc
git-svn-id: svn://localhost/ardour2/trunk@938 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0b6139304b
commit
02115563fe
9 changed files with 33 additions and 25 deletions
|
|
@ -294,8 +294,6 @@ ActionManager::toggle_config_state (const char* group, const char* action, bool
|
|||
if (tact) {
|
||||
bool x = (Config->*get)();
|
||||
|
||||
cerr << "\ttoggle config, action = " << tact->get_active() << " config = " << x << endl;
|
||||
|
||||
if (x != tact->get_active()) {
|
||||
(Config->*set) (!x);
|
||||
}
|
||||
|
|
@ -326,13 +324,11 @@ ActionManager::map_some_state (const char* group, const char* action, bool (Conf
|
|||
|
||||
bool x = (Config->*get)();
|
||||
|
||||
cerr << "\tmap state, action = " << tact->get_active() << " config = " << x << endl;
|
||||
|
||||
if (tact->get_active() != x) {
|
||||
tact->set_active (x);
|
||||
}
|
||||
} else {
|
||||
cerr << "not a toggle\n";
|
||||
cerr << group << ':' << action << " is not a toggle\n";
|
||||
}
|
||||
} else {
|
||||
cerr << group << ':' << action << " not an action\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue