diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-13 15:30:26 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-14 03:38:22 +1200 |
commit | b98ac90c4347156891b9e68ba7b9286ee70467ab (patch) | |
tree | 487843970ba179962a2784b658b01532d89c95aa /desktop-widgets/tagwidget.cpp | |
parent | 27927f74a1b11ed76580059443e9d4f963df0513 (diff) | |
download | subsurface-b98ac90c4347156891b9e68ba7b9286ee70467ab.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tagwidget.cpp')
-rw-r--r-- | desktop-widgets/tagwidget.cpp | 8 |
1 files changed, 0 insertions, 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) { |