forked from qt-creator/qt-creator
Disable "Search Again" if file filter is disabled.
For example disabled it for "All Projects" searches when all projects are closed. Change-Id: Icc65a87577ba51f4362791dc8ecdca3c92819553 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -175,9 +175,9 @@ void FindToolWindow::setCurrentFilter(int index)
|
||||
if (i == index) {
|
||||
m_configWidget = configWidget;
|
||||
if (m_currentFilter)
|
||||
disconnect(m_currentFilter, SIGNAL(changed()), this, SLOT(updateButtonStates()));
|
||||
disconnect(m_currentFilter, SIGNAL(enabledChanged(bool)), this, SLOT(updateButtonStates()));
|
||||
m_currentFilter = m_filters.at(i);
|
||||
connect(m_currentFilter, SIGNAL(changed()), this, SLOT(updateButtonStates()));
|
||||
connect(m_currentFilter, SIGNAL(enabledChanged(bool)), this, SLOT(updateButtonStates()));
|
||||
updateButtonStates();
|
||||
if (m_configWidget) {
|
||||
m_ui.configWidget->layout()->addWidget(m_configWidget);
|
||||
|
||||
Reference in New Issue
Block a user