mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Remove exclamation mark from "String not found!"
When using 'find' and a string is not found, this is not an error or a surprising event. It is often expected (e.g. after searching through the whole document for a certain string eventually you will get this message). The exclamation mark should be reserved for messages that are unexpected or that need extra attention, such as errors.
This commit is contained in:
parent
0d7702e5e6
commit
2427e9b57a
@ -1545,7 +1545,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
if (lyxfind(this, req))
|
||||
dr.screenUpdate(Update::Force | Update::FitCursor);
|
||||
else
|
||||
message(_("String not found!"));
|
||||
message(_("String not found."));
|
||||
d->search_request_cache_ = req;
|
||||
break;
|
||||
}
|
||||
|
@ -379,7 +379,7 @@ bool lyxreplace(BufferView * bv,
|
||||
Buffer const & buf = bv->buffer();
|
||||
if (!update) {
|
||||
// emit message signal.
|
||||
buf.message(_("String not found!"));
|
||||
buf.message(_("String not found."));
|
||||
} else {
|
||||
if (replace_count == 0) {
|
||||
buf.message(_("String found."));
|
||||
@ -397,7 +397,7 @@ bool lyxreplace(BufferView * bv,
|
||||
if (findOne(bv, search, casesensitive, matchword, forward))
|
||||
update = true;
|
||||
else
|
||||
bv->message(_("String not found!"));
|
||||
bv->message(_("String not found."));
|
||||
}
|
||||
return update;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user