mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
27927f74a1
commit
b98ac90c43
1 changed files with 0 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue