OSDN Git Service

Fixed adding of new file patterns to combo box in advanced find dialog
authorRobert Loehning <robert.loehning@nokia.com>
Mon, 3 May 2010 20:20:30 +0000 (22:20 +0200)
committerRobert Loehning <robert.loehning@nokia.com>
Mon, 3 May 2010 20:20:30 +0000 (22:20 +0200)
Task-Nr: QTCREATORBUG-1329

src/plugins/texteditor/basefilefind.cpp

index 1e4adf0..0210aa7 100644 (file)
@@ -92,7 +92,7 @@ void BaseFileFind::findAll(const QString &txt, QTextDocument::FindFlags findFlag
     m_isSearching = true;
     emit changed();
     if (m_filterCombo)
-        updateComboEntries(m_filterCombo, false);
+        updateComboEntries(m_filterCombo, true);
     m_watcher.setFuture(QFuture<FileSearchResult>());
     SearchResult *result = m_resultWindow->startNewSearch();
     connect(result, SIGNAL(activated(Find::SearchResultItem)), this, SLOT(openEditor(Find::SearchResultItem)));
@@ -114,7 +114,7 @@ void BaseFileFind::replaceAll(const QString &txt, QTextDocument::FindFlags findF
     m_isSearching = true;
     emit changed();
     if (m_filterCombo)
-        updateComboEntries(m_filterCombo, false);
+        updateComboEntries(m_filterCombo, true);
     m_watcher.setFuture(QFuture<FileSearchResult>());
     SearchResult *result = m_resultWindow->startNewSearch(SearchResultWindow::SearchAndReplace);
     connect(result, SIGNAL(activated(Find::SearchResultItem)), this, SLOT(openEditor(Find::SearchResultItem)));