mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Fix crash looking up smart-mode
we need to call get_toggle_action (char const*, char const, bool d = false) and not get_toggle_action (const string& name, bool) For whatever reason `(string, char*)` matches the latter function's signature.
This commit is contained in:
parent
bbdb6b0e63
commit
c8b2c0c543
2 changed files with 3 additions and 7 deletions
|
|
@ -313,11 +313,7 @@ TimeInfoBox::selection_changed ()
|
|||
|
||||
case Editing::MouseRange:
|
||||
if (selection.time.empty()) {
|
||||
/* XXX we really ought to be calling
|
||||
::get_mouse_mode_action() here but there is no actual
|
||||
mouse emode enum for smart mode (object-range).
|
||||
*/
|
||||
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (PublicEditor::instance().editor_name(), "set-mouse-mode-object-range");
|
||||
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (PublicEditor::instance().editor_name().c_str(), "set-mouse-mode-object-range");
|
||||
|
||||
if (tact->get_active() && !selection.regions.empty()) {
|
||||
/* show selected regions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue