diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2011-12-14 15:55:05 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-12-20 12:03:50 +0100 |
commit | 26d8b8753c365899415e8c3acc42ead5deeef260 (patch) | |
tree | fa062a350d3c70ff9389367b0c70587f4bf4dcc2 /src/plugins/texteditor/findincurrentfile.cpp | |
parent | 2cb7c6adcfd536f4926f9fe0a7db64373a4ccd3b (diff) |
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>
Diffstat (limited to 'src/plugins/texteditor/findincurrentfile.cpp')
-rw-r--r-- | src/plugins/texteditor/findincurrentfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/findincurrentfile.cpp b/src/plugins/texteditor/findincurrentfile.cpp index 7481337903..6b85ca6242 100644 --- a/src/plugins/texteditor/findincurrentfile.cpp +++ b/src/plugins/texteditor/findincurrentfile.cpp @@ -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()); } } } |