From 202b9cc82a6d602ec842b60d609ebdcfe6bac16d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 17 Sep 2015 00:20:13 +0200 Subject: [PATCH] fix a tautologically undefined comparison --- gtk2_ardour/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 032dd794b8..c434bac335 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -297,13 +297,13 @@ ARDOUR_UI_UTILS::gdk_color_to_rgba (Gdk::Color const& c) bool ARDOUR_UI_UTILS::relay_key_press (GdkEventKey* ev, Gtk::Window* win) { - PublicEditor& ed (PublicEditor::instance()); 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 */ return false; } + PublicEditor& ed (PublicEditor::instance()); return ed.on_key_press_event(ev); } else { return true;