Commit 4fe6e164 authored by Kåre Särs's avatar Kåre Särs

S&R: Fix replace-combo not being case sensitive

BUG: 353508
parent 586dbacc
......@@ -358,7 +358,7 @@ m_mainWindow (mainWin)
m_ui.searchCombo->setMaxCount(25);
m_ui.replaceCombo->completer()->setCompletionMode(QCompleter::PopupCompletion);
m_ui.searchCombo->completer()->setCaseSensitivity(Qt::CaseSensitive);
m_ui.replaceCombo->completer()->setCaseSensitivity(Qt::CaseSensitive);
m_ui.replaceCombo->setInsertPolicy(QComboBox::NoInsert);
m_ui.replaceCombo->lineEdit()->setClearButtonEnabled(true);
m_ui.replaceCombo->setMaxCount(25);
......@@ -1242,6 +1242,7 @@ void KatePluginSearchView::replaceSingleMatch()
m_ui.searchCombo->setCurrentIndex(1);
}
if (m_ui.replaceCombo->findText(m_ui.replaceCombo->currentText()) == -1) {
m_ui.replaceCombo->insertItem(1, m_ui.replaceCombo->currentText());
m_ui.replaceCombo->setCurrentIndex(1);
......
Markdown is supported
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