diff --git a/krunner/view.cpp b/krunner/view.cpp --- a/krunner/view.cpp +++ b/krunner/view.cpp @@ -366,6 +366,11 @@ return; } + // Avoid removing the same item from the front and prepending it again + if (!m_history.isEmpty() && m_history.constFirst() == item) { + return; + } + if (!KAuthorized::authorize(QStringLiteral("lineedit_text_completion"))) { return; }