diff --git a/src/lib_gui/qt/element/QtAutocompletionList.cpp b/src/lib_gui/qt/element/QtAutocompletionList.cpp index b858d3f0..b7e9e149 100644 --- a/src/lib_gui/qt/element/QtAutocompletionList.cpp +++ b/src/lib_gui/qt/element/QtAutocompletionList.cpp @@ -378,7 +378,15 @@ void QtAutocompletionList::completeAt(const QPoint& pos, const std::vectorresetCharSizes(); + if (!list->isVisible()) + { + // this block fixes an issue where the autocompletion list becomes invisible after some time on Windows + // TODO: try to find out which line actually fixes the issue + m_delegate = std::make_shared(m_model.get(), this); + list->setItemDelegateForColumn(0, m_delegate.get()); + setPopup(list); + list->show(); + } disconnect(); // must be done because of a bug where signals are no longer received by QtSmartSearchBox connect(this,