Commit 61672e13 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed a few focus issues we had in the search result window (in replace mode).

Delayed the call to selectAll()
parent c489b8db
......@@ -108,7 +108,6 @@ SearchResultWindow::~SearchResultWindow()
void SearchResultWindow::setTextToReplace(const QString &textToReplace)
{
m_replaceTextEdit->setText(textToReplace);
m_replaceTextEdit->selectAll();
}
QString SearchResultWindow::textToReplace() const
......@@ -233,6 +232,7 @@ void SearchResultWindow::setFocus()
|| m_widget->focusWidget() == m_replaceTextEdit
|| m_focusReplaceEdit) {
m_replaceTextEdit->setFocus();
m_replaceTextEdit->selectAll();
} else {
m_searchResultTreeView->setFocus();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment