13
0

minor safety check for symmetry

git-svn-id: svn://localhost/ardour2/branches/3.0@8276 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-12-14 20:28:11 +00:00
parent 3c48aabbbe
commit ee5a37a306

View File

@ -367,6 +367,11 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event)
}
return true;
} else {
/* for us to be getting key press events, there really
MUST be a _pluginui, but just to be safe, check ...
*/
if (_pluginui) {
if (_pluginui->non_gtk_gui()) {
/* pass editor window as the window for the event
to be handled in, not this one, because there are
@ -377,6 +382,9 @@ PluginUIWindow::on_key_press_event (GdkEventKey* event)
} else {
return relay_key_press (event, this);
}
} else {
return false;
}
}
}