diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-06 15:40:22 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-06 15:40:22 -0400 |
commit | bfd0f321f676be54bb81fe5beab56ad8a9372056 (patch) | |
tree | 5cdd033b89456de070a21413620bc6415fa78bfc /gtk2_ardour | |
parent | ff4e9cc1df27ba1b1220176b4752ee6bc19f177d (diff) |
use existing Editor::reset_focus() method to reset focus after audio clock editing is done
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 16b4151a81..2455d50ccc 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -38,10 +38,12 @@ #include "ardour/types.h" #include "audio_clock.h" -#include "utils.h" -#include "keyboard.h" #include "gui_thread.h" +#include "keyboard.h" +#include "public_editor.h" #include "ui_config.h" +#include "utils.h" + #include "pbd/i18n.h" using namespace ARDOUR; @@ -709,15 +711,8 @@ AudioClock::drop_focus () Keyboard::magic_widget_drop_focus (); if (has_focus()) { - /* move focus back to the default widget in the top level window */ - - Widget* top = get_toplevel(); - - if (top->is_toplevel ()) { - Window* win = dynamic_cast<Window*> (top); - win->grab_focus (); - } + PublicEditor::instance().reset_focus (this); } } |