From 332cf7be707a0e1e75a29a986f4cfd06ac1144cf Mon Sep 17 00:00:00 2001 From: malte_langkabel Date: Fri, 4 Aug 2017 14:01:56 +0200 Subject: [PATCH] ui: fix an issue where the autocompletion list becomes invisible after some time on Windows --- src/lib_gui/qt/element/QtAutocompletionList.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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,