fix focus navigation in dynamic delegate of list view

This commit is contained in:
Cyril Anisimov 2024-11-01 23:10:01 +01:00
parent 416421cba7
commit ed6fc27e52

View file

@ -279,10 +279,8 @@ void ListViewFocusController::focusNextItem()
return; return;
} }
if (m_focusChain.empty()) { m_focusChain = getItemsChain(currentDelegate());
qDebug() << "Empty focusChain with current delegate: " << currentDelegate() << "Scanning for elements...";
m_focusChain = getItemsChain(currentDelegate());
}
if (m_focusChain.empty()) { if (m_focusChain.empty()) {
qWarning() << "No elements found in the delegate. Going to next delegate..."; qWarning() << "No elements found in the delegate. Going to next delegate...";
nextDelegate(); nextDelegate();