mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
set Gtk::RadioAction state on instant.xml load.
This should really be done in ArdourDropdown somehow.
Fixes issues introduced at b9708d5: If after session-load some
radio-item other than the first one is set active, it is
impossible to switch to the first.
e.g. set "Snap to Grid", Save Session, Load Session, trying to
switch to "Snap to None" fails until another mode is selected first.
This commit is contained in:
parent
f5f38bb805
commit
d411468f08
1 changed files with 3 additions and 3 deletions
|
|
@ -2251,7 +2251,7 @@ Editor::set_state (const XMLNode& node, int /*version*/)
|
|||
//}
|
||||
|
||||
if ((prop = node.property ("zoom-focus"))) {
|
||||
set_zoom_focus ((ZoomFocus) string_2_enum (prop->value(), zoom_focus));
|
||||
zoom_focus_selection_done ((ZoomFocus) string_2_enum (prop->value(), zoom_focus));
|
||||
}
|
||||
|
||||
if ((prop = node.property ("zoom"))) {
|
||||
|
|
@ -2267,11 +2267,11 @@ Editor::set_state (const XMLNode& node, int /*version*/)
|
|||
}
|
||||
|
||||
if ((prop = node.property ("snap-to"))) {
|
||||
set_snap_to ((SnapType) string_2_enum (prop->value(), _snap_type));
|
||||
snap_type_selection_done ((SnapType) string_2_enum (prop->value(), _snap_type));
|
||||
}
|
||||
|
||||
if ((prop = node.property ("snap-mode"))) {
|
||||
set_snap_mode ((SnapMode) string_2_enum (prop->value(), _snap_mode));
|
||||
snap_mode_selection_done((SnapMode) string_2_enum (prop->value(), _snap_mode));
|
||||
}
|
||||
|
||||
if ((prop = node.property ("internal-snap-to"))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue