Preview: avoid beeping if the initial automatically started search fails

This commit is contained in:
Jean-Francois Dockes 2019-09-20 09:06:25 +02:00
parent 8d92b9debd
commit db3c401a23

View File

@ -894,8 +894,9 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
// Position the editor so that the first search term is visible
if (searchTextCMB->currentText().length() != 0) {
// If there is a current search string, perform the search
m_canBeep = true;
// If there is a current search string, perform the search.
// Do not beep for an automatic search, this is ennoying.
m_canBeep = false;
doSearch(searchTextCMB->currentText(), true, false);
} else {
// Position to the first query term