Skip to content

Commit 0dcd15b

Browse files
committed
only report results, not non-results
closes #497
1 parent a8363c3 commit 0dcd15b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SearchDlg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4530,7 +4530,8 @@ void CSearchDlg::SendResult(const CSearchInfo& sInfo, const int nCount)
45304530
{
45314531
SendMessage(*this, SEARCH_PROGRESS, (nCount >= 0), 0);
45324532
bool bAsResult = m_bNotSearch ? (nCount <= 0) : (nCount > 0);
4533-
SendMessage(*this, SEARCH_FOUND, bAsResult, reinterpret_cast<LPARAM>(&sInfo));
4533+
if (bAsResult)
4534+
SendMessage(*this, SEARCH_FOUND, bAsResult, reinterpret_cast<LPARAM>(&sInfo));
45344535
}
45354536

45364537
void CSearchDlg::SearchFile(CSearchInfo sInfo, const std::wstring& searchRoot)

0 commit comments

Comments
 (0)