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:
@@ -104,13 +104,13 @@ void FindInCurrentFile::handleFileChange(Core::IEditor *editor)
|
||||
if (!editor) {
|
||||
if (m_currentFile) {
|
||||
m_currentFile = 0;
|
||||
emit changed();
|
||||
emit enabledChanged(isEnabled());
|
||||
}
|
||||
} else {
|
||||
Core::IFile *file = editor->file();
|
||||
if (file != m_currentFile) {
|
||||
m_currentFile = file;
|
||||
emit changed();
|
||||
emit enabledChanged(isEnabled());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user