Commit 0cfdc101 authored by David Schulz's avatar David Schulz

Find: Open tool bar when triggering find next...

...without a search expression.

Task-number: QTCREATORBUG-12865
Change-Id: I87c325ff85a005ffc87ad2df391c19251b5e2e08
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 89b0e4c0
......@@ -473,8 +473,12 @@ void FindToolBar::invokeFindNext()
void FindToolBar::invokeGlobalFindNext()
{
acceptCandidateAndMoveToolBar();
invokeFindNext();
if (getFindText().isEmpty()) {
openFind();
} else {
acceptCandidateAndMoveToolBar();
invokeFindNext();
}
}
void FindToolBar::invokeFindPrevious()
......@@ -485,8 +489,12 @@ void FindToolBar::invokeFindPrevious()
void FindToolBar::invokeGlobalFindPrevious()
{
acceptCandidateAndMoveToolBar();
invokeFindPrevious();
if (getFindText().isEmpty()) {
openFind();
} else {
acceptCandidateAndMoveToolBar();
invokeFindPrevious();
}
}
QString FindToolBar::getFindText()
......
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