Commit 18967eea authored by Andreas Hartmetz's avatar Andreas Hartmetz

Fix "QObject::connect: Connecting from COMPAT signal (QComboBox::textChanged(QString))"

Note that this warning is emitted twice when opening the search bar
(Ctrl-F), both time about the same connect(). Looks like
enterIncrementalMode() is (accidentally?) called twice.
parent 328207bb
......@@ -1450,9 +1450,9 @@ void KateSearchBar::enterIncrementalMode() {
// Set initial search pattern
if (!create)
disconnect(m_incUi->pattern, SIGNAL(textChanged(QString)), this, SLOT(onIncPatternChanged(QString)));
disconnect(m_incUi->pattern, SIGNAL(editTextChanged(QString)), this, SLOT(onIncPatternChanged(QString)));
m_incUi->pattern->setEditText(initialPattern);
connect(m_incUi->pattern, SIGNAL(textChanged(QString)), this, SLOT(onIncPatternChanged(QString)));
connect(m_incUi->pattern, SIGNAL(editTextChanged(QString)), this, SLOT(onIncPatternChanged(QString)));
m_incUi->pattern->lineEdit()->selectAll();
// Propagate settings (slots are still inactive on purpose)
......
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