From b98ac90c4347156891b9e68ba7b9286ee70467ab Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 13 Apr 2019 15:30:26 +0200 Subject: Desktop: remove edit-check in tag-widget completer The tag-widget was only showing the completer if we were in edit mode. The edit mode does not exist anymore - therefore remove the check. Hopefully this has no unintended consequences, like the completer not disappearing when it should. Signed-off-by: Berthold Stoeger --- desktop-widgets/tagwidget.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/desktop-widgets/tagwidget.cpp b/desktop-widgets/tagwidget.cpp index b09507537..743e4fbca 100644 --- a/desktop-widgets/tagwidget.cpp +++ b/desktop-widgets/tagwidget.cpp @@ -89,14 +89,6 @@ void TagWidget::reparse() if (pos.first >= 0 && pos.second > 0) currentText = text().mid(pos.first, pos.second - pos.first).trimmed(); - /* - * Do not show the completer when not in edit mode - basically - * this returns when we are accepting or discarding the changes. - */ - if (MainWindow::instance()->mainTab->isEditing() == false) { - return; - } - if (m_completer) { m_completer->setCompletionPrefix(currentText); if (m_completer->completionCount() == 1) { -- cgit v1.2.3-70-g09d2