forked from qt-creator/qt-creator
Find: Avoid warning
1. open a text editor 2. open find 3. close editor 4. move focus between e.g. project tree and empty editor area It was trying to highlight all occurrences in the empty editor area. Change-Id: I59e344f977970290c7fd816951c1bdc150dae783 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -365,7 +365,7 @@ void FindToolBar::adaptToCandidate()
|
||||
updateGlobalActions();
|
||||
if (findToolBarPlaceHolder() == FindToolBarPlaceHolder::getCurrent()) {
|
||||
m_currentDocumentFind->acceptCandidate();
|
||||
if (isVisible())
|
||||
if (isVisible() && m_currentDocumentFind->isEnabled())
|
||||
m_currentDocumentFind->highlightAll(getFindText(), effectiveFindFlags());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user