Commit 7f72a2bcb876c910c9c71e91da8d71a6f7f6d597
Fix a bug with selecting copying the right text to the Find dialog.
To reproduce:
Split editors.
Select text in first editor.
Select text in second editor.
Invoke the find dialog.
Notice that the text from the first editor was used.
Reviewed-By: mae
(cherry picked from commit fd0fbddebbf8b78398cc4d26e3bb36b8c445a307)
| |   |
| 135 | 135 | QAction *action = qobject_cast<QAction*>(sender()); |
| 136 | 136 | QTC_ASSERT(action, return); |
| 137 | 137 | IFindFilter *filter = action->data().value<IFindFilter *>(); |
| if (m_currentDocumentFind->candidateIsEnabled()) |
| m_currentDocumentFind->acceptCandidate(); |
| 138 | 140 | QString currentFindString = (m_currentDocumentFind->isEnabled() ? m_currentDocumentFind->currentFindString() : ""); |
| 139 | 141 | if (!currentFindString.isEmpty()) |
| 140 | 142 | m_findDialog->setFindText(currentFindString); |