diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index ff81d88399..4e9f9eaa5d 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -285,15 +285,15 @@ bool GuiCompleter::inlineVisible() const } -void GuiCompleter::updateVisibility(Cursor & cur, bool start, bool keep, bool cursorInView) +void GuiCompleter::updateVisibility(Cursor & cur, bool start, bool keep) { // parameters which affect the completion bool moved = cur != old_cursor_; if (moved) old_cursor_ = cur; - bool possiblePopupState = popupPossible(cur) && cursorInView; - bool possibleInlineState = inlinePossible(cur) && cursorInView; + bool const possiblePopupState = popupPossible(cur); + bool const possibleInlineState = inlinePossible(cur); // we moved or popup state is not ok for popup? if ((moved && !keep) || !possiblePopupState) diff --git a/src/frontends/qt4/GuiCompleter.h b/src/frontends/qt4/GuiCompleter.h index f5986359de..5900f7c08c 100644 --- a/src/frontends/qt4/GuiCompleter.h +++ b/src/frontends/qt4/GuiCompleter.h @@ -61,7 +61,7 @@ public: /// Update the visibility of the popup and the inline completion. /// This method might set the update flags of the cursor to request /// a redraw. - void updateVisibility(Cursor & cur, bool start, bool keep, bool cursorInView = true); + void updateVisibility(Cursor & cur, bool start, bool keep); /// Update the visibility of the popup and the inline completion. /// This method handles the redraw if needed. void updateVisibility(bool start, bool keep);