Commit 7f72a2bcb876c910c9c71e91da8d71a6f7f6d597

  • avatar
  • con <qtc-committer @no…a.com> (Committer)
  • Tue Nov 24 14:41:33 CET 2009
  • avatar
  • dt <qtc-committer @no…a.com> (Author)
  • Wed Oct 21 15:10:27 CEST 2009
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)
  
135135 QAction *action = qobject_cast<QAction*>(sender());
136136 QTC_ASSERT(action, return);
137137 IFindFilter *filter = action->data().value<IFindFilter *>();
138 if (m_currentDocumentFind->candidateIsEnabled())
139 m_currentDocumentFind->acceptCandidate();
138140 QString currentFindString = (m_currentDocumentFind->isEnabled() ? m_currentDocumentFind->currentFindString() : "");
139141 if (!currentFindString.isEmpty())
140142 m_findDialog->setFindText(currentFindString);