13
0

fix a tautologically undefined comparison

This commit is contained in:
Robin Gareus 2015-09-17 00:20:13 +02:00
parent 4a10dbbc1b
commit 202b9cc82a

View File

@ -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;