diff --git a/src/project.cc b/src/project.cc index fcca09b..91e2939 100644 --- a/src/project.cc +++ b/src/project.cc @@ -404,6 +404,7 @@ void Project::Clang::debug_backtrace() { } } }; + view->hide_tooltips(); view->selection_dialog->show(); } } diff --git a/src/source.h b/src/source.h index 53f00a5..a17c7f3 100644 --- a/src/source.h +++ b/src/source.h @@ -89,7 +89,7 @@ namespace Source { void place_cursor_at_line_offset(int line, int offset); void place_cursor_at_line_index(int line, int index); - void hide_tooltips(); + void hide_tooltips() override; void hide_dialogs() override; std::function on_update_status; diff --git a/src/source_clang.cc b/src/source_clang.cc index 084bf66..31b23f0 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -743,6 +743,7 @@ void Source::ClangViewAutocomplete::autocomplete() { autocomplete_state=AutocompleteState::IDLE; if (!autocomplete_dialog_rows.empty()) { get_buffer()->begin_user_action(); + hide_tooltips(); autocomplete_dialog->show(); } else diff --git a/src/source_spellcheck.cc b/src/source_spellcheck.cc index 64d4bba..f27c38c 100644 --- a/src/source_spellcheck.cc +++ b/src/source_spellcheck.cc @@ -147,6 +147,7 @@ Source::SpellCheckView::SpellCheckView() : Gsv::View() { get_buffer()->insert(get_buffer()->get_insert()->get_iter(), selected); get_buffer()->end_user_action(); }; + hide_tooltips(); spellcheck_suggestions_dialog->show(); } return false; diff --git a/src/source_spellcheck.h b/src/source_spellcheck.h index 1ab6d9f..6902fbe 100644 --- a/src/source_spellcheck.h +++ b/src/source_spellcheck.h @@ -12,6 +12,7 @@ namespace Source { virtual void configure(); + virtual void hide_tooltips() {} virtual void hide_dialogs(); void spellcheck(); diff --git a/src/window.cc b/src/window.cc index 21980b1..3309959 100644 --- a/src/window.cc +++ b/src/window.cc @@ -533,6 +533,7 @@ void Window::set_menu_actions() { view->scroll_to(view->get_buffer()->get_insert(), 0.0, 1.0, 0.5); view->hide_tooltips(); }; + view->hide_tooltips(); view->selection_dialog->show(); } } @@ -556,6 +557,7 @@ void Window::set_menu_actions() { view->scroll_to(view->get_buffer()->get_insert(), 0.0, 1.0, 0.5); view->hide_tooltips(); }; + view->hide_tooltips(); view->selection_dialog->show(); } }