mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Fix session sensitivity of some toolbar controls
This commit is contained in:
parent
cc9f941488
commit
561cf86919
4 changed files with 9 additions and 0 deletions
|
|
@ -405,6 +405,9 @@ ARDOUR_UI::setup_windows ()
|
|||
bool
|
||||
ARDOUR_UI::bind_lua_action_script (GdkEventButton*ev, int i)
|
||||
{
|
||||
if (!_session) {
|
||||
return false;
|
||||
}
|
||||
LuaInstance *li = LuaInstance::instance();
|
||||
std::string name;
|
||||
if (ev->button != 3 && !(ev->button == 1 && !li->lua_action_name (i, name))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue