From db3c401a239f562dd04ce4d048b2649faa463708 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 20 Sep 2019 09:06:25 +0200 Subject: [PATCH] Preview: avoid beeping if the initial automatically started search fails --- src/qtgui/preview_w.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp index a0b6f794..18ce9186 100644 --- a/src/qtgui/preview_w.cpp +++ b/src/qtgui/preview_w.cpp @@ -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