fix a tautologically undefined comparison
This commit is contained in:
parent
4a10dbbc1b
commit
202b9cc82a
@ -297,13 +297,13 @@ ARDOUR_UI_UTILS::gdk_color_to_rgba (Gdk::Color const& c)
|
|||||||
bool
|
bool
|
||||||
ARDOUR_UI_UTILS::relay_key_press (GdkEventKey* ev, Gtk::Window* win)
|
ARDOUR_UI_UTILS::relay_key_press (GdkEventKey* ev, Gtk::Window* win)
|
||||||
{
|
{
|
||||||
PublicEditor& ed (PublicEditor::instance());
|
|
||||||
|
|
||||||
if (!key_press_focus_accelerator_handler (*win, ev)) {
|
if (!key_press_focus_accelerator_handler (*win, ev)) {
|
||||||
if (&ed == 0) {
|
if (!PublicEditor::_instance) {
|
||||||
/* early key press in pre-main-window-dialogs, no editor yet */
|
/* early key press in pre-main-window-dialogs, no editor yet */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
PublicEditor& ed (PublicEditor::instance());
|
||||||
return ed.on_key_press_event(ev);
|
return ed.on_key_press_event(ev);
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user