mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Escape angled brackets in playlist names for tooltips.
git-svn-id: svn://localhost/ardour2/branches/3.0@12672 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1804efbd14
commit
d7551a8f08
3 changed files with 18 additions and 2 deletions
|
|
@ -1591,13 +1591,17 @@ RouteTimeAxisView::update_playlist_tip ()
|
|||
take_name = take_name.substr (idx + group_string.length());
|
||||
|
||||
/* set the playlist button tooltip to the take name */
|
||||
ARDOUR_UI::instance()->set_tip (playlist_button,string_compose(_("Take: %1.%2"), rg->name(), take_name));
|
||||
ARDOUR_UI::instance()->set_tip (
|
||||
playlist_button,
|
||||
string_compose(_("Take: %1.%2"), escape_angled_brackets (rg->name()), escape_angled_brackets (take_name))
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* set the playlist button tooltip to the playlist name */
|
||||
ARDOUR_UI::instance()->set_tip (playlist_button, _("Playlist") + std::string(": ") + track()->playlist()->name());
|
||||
ARDOUR_UI::instance()->set_tip (playlist_button, _("Playlist") + std::string(": ") + escape_angled_brackets (track()->playlist()->name()));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue