Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ab94e071 authored by Alex Neundorf's avatar Alex Neundorf

search plugin: fix startSearch() when pressing Enter in the folder requester

startSearch() was connected to KUrlComboRequester::returnPressed(), but somehow this
signal is not emitted. The signals are not blocked, and the eventFilter also doesn't
seem to interfer.
Connecting to the signal of the lineedit makes it work...

Alex
parent 7a114644
......@@ -317,7 +317,8 @@ m_mainWindow (mainWin)
connect(&m_changeTimer, SIGNAL(timeout()), this, SLOT(startSearchWhileTyping()));
connect(m_ui.searchCombo->lineEdit(), SIGNAL(returnPressed()), this, SLOT(startSearch()));
connect(m_ui.folderRequester, SIGNAL(returnPressed()), this, SLOT(startSearch()));
// connecting to returnPressed() of the folderRequester doesn't work, I haven't found out why yet. But connecting to the linedit works:
connect(m_ui.folderRequester->comboBox()->lineEdit(), SIGNAL(returnPressed()), this, SLOT(startSearch()));
connect(m_ui.filterCombo, SIGNAL(returnPressed()), this, SLOT(startSearch()));
connect(m_ui.excludeCombo, SIGNAL(returnPressed()), this, SLOT(startSearch()));
connect(m_ui.searchButton, SIGNAL(clicked()), this, SLOT(startSearch()));
......
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