Fixes a crash in Dolphin when pressing a key so quickly after a url
change that there are no items in the file item model yet.
BUG:287147
void KItemListController::slotChangeCurrentItem(const QString& text, bool searchFromNextItem)
{
void KItemListController::slotChangeCurrentItem(const QString& text, bool searchFromNextItem)
{
+ if (!m_model || m_model->count() == 0) {
return;
}
const int currentIndex = m_selectionManager->currentItem();
return;
}
const int currentIndex = m_selectionManager->currentItem();