Preview: avoid beeping if the initial automatically started search fails
This commit is contained in:
parent
8d92b9debd
commit
db3c401a23
@ -894,8 +894,9 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
|
|||||||
|
|
||||||
// Position the editor so that the first search term is visible
|
// Position the editor so that the first search term is visible
|
||||||
if (searchTextCMB->currentText().length() != 0) {
|
if (searchTextCMB->currentText().length() != 0) {
|
||||||
// If there is a current search string, perform the search
|
// If there is a current search string, perform the search.
|
||||||
m_canBeep = true;
|
// Do not beep for an automatic search, this is ennoying.
|
||||||
|
m_canBeep = false;
|
||||||
doSearch(searchTextCMB->currentText(), true, false);
|
doSearch(searchTextCMB->currentText(), true, false);
|
||||||
} else {
|
} else {
|
||||||
// Position to the first query term
|
// Position to the first query term
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user