Find: Store flags also in FindToolWindow

The flags are only preserved in history if they are updated via
Find::updateFindCompletion. This was called for the find toolbar, but not
for Find in Files.

Change-Id: I16666cc854aed043bfe01175964a4c415020557c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2018-10-08 23:42:38 +03:00
committed by Orgad Shaneh
parent 3a09687921
commit 879a7082f8

View File

@@ -269,7 +269,7 @@ void FindToolWindow::acceptAndGetParameters(QString *term, IFindFilter **filter)
{
QTC_ASSERT(filter, return);
*filter = nullptr;
Find::updateFindCompletion(m_ui.searchTerm->text());
Find::updateFindCompletion(m_ui.searchTerm->text(), Find::findFlags());
int index = m_ui.filterList->currentIndex();
QString searchTerm = m_ui.searchTerm->text();
if (index >= 0)