forked from qt-creator/qt-creator
Find: Fix wrong target of (replace) next/previous actions.
They were always triggered on the find support that had the find tool bar, even if the focus moved to a different one and even if the find tool bar was not visible. Task-number: QTCREATORBUG-11587 Change-Id: Ica7ef6275dc8a7e0e8b974c2796651c9ca7809a6 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -181,8 +181,7 @@ void FindPlugin::openFindFilter()
|
||||
|
||||
void FindPlugin::openFindDialog(IFindFilter *filter)
|
||||
{
|
||||
if (d->m_currentDocumentFind->candidateIsEnabled())
|
||||
d->m_currentDocumentFind->acceptCandidate();
|
||||
d->m_currentDocumentFind->acceptCandidate();
|
||||
const QString currentFindString =
|
||||
d->m_currentDocumentFind->isEnabled() ?
|
||||
d->m_currentDocumentFind->currentFindString() : QString();
|
||||
|
||||
Reference in New Issue
Block a user