Mackie Control: Save old bank before we change it to new.
This commit is contained in:
parent
2367240735
commit
b4a9bf5878
@ -1833,13 +1833,13 @@ MackieControlProtocol::set_view_mode (ViewMode m)
|
|||||||
ViewMode old_view_mode = _view_mode;
|
ViewMode old_view_mode = _view_mode;
|
||||||
|
|
||||||
_view_mode = m;
|
_view_mode = m;
|
||||||
|
_last_bank[old_view_mode] = _current_initial_bank;
|
||||||
|
|
||||||
if (switch_banks(_last_bank[m], true)) {
|
if (switch_banks(_last_bank[m], true)) {
|
||||||
_view_mode = old_view_mode;
|
_view_mode = old_view_mode;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_last_bank[old_view_mode] = _current_initial_bank;
|
|
||||||
/* leave subview mode, whatever it was */
|
/* leave subview mode, whatever it was */
|
||||||
set_subview_mode (None, boost::shared_ptr<Route>());
|
set_subview_mode (None, boost::shared_ptr<Route>());
|
||||||
display_view_mode ();
|
display_view_mode ();
|
||||||
|
Loading…
Reference in New Issue
Block a user