Commit 6c462cb6 authored by Gustavo  Rodrigues's avatar Gustavo Rodrigues Committed by Christoph Cullmann
Browse files

fix selected option when filtering in quick open

parent 249e5c46
Pipeline #92808 passed with stage
in 3 minutes and 9 seconds
......@@ -305,9 +305,9 @@ bool KateQuickOpen::eventFilter(QObject *obj, QEvent *event)
void KateQuickOpen::reselectFirst()
{
int first = 0;
if (m_mainWindow->viewManager()->sortedViews().size() > 1 && m_model->rowCount() > 1) {
if (m_mainWindow->viewManager()->sortedViews().size() > 1 && m_model->rowCount() > 1 && m_inputLine->text().isEmpty()) {
first = 1;
}
}
QModelIndex index = m_model->index(first, 0);
m_listView->setCurrentIndex(index);
......@@ -398,4 +398,4 @@ void KateQuickOpen::updateViewGeometry()
move(p + m_mainWindow->pos());
setFixedSize(viewMaxSize);
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment