# HG changeset patch # User Torsten # Date 1445067667 -7200 # Node ID 9e3b3aca6eadda647d45b32b51e905ff4b9a5846 # Parent 802dc52d4d469d38250acb6eb88e78e105a895cf prevent doc browser from searching for an empty string (bug 46227) * webinfo.cc (search): just return if search text is empty or only contains whitespace diff -r 802dc52d4d46 -r 9e3b3aca6ead libgui/src/qtinfo/webinfo.cc --- a/libgui/src/qtinfo/webinfo.cc Fri Oct 16 11:03:26 2015 +0200 +++ b/libgui/src/qtinfo/webinfo.cc Sat Oct 17 09:41:07 2015 +0200 @@ -241,6 +241,9 @@ void webinfo::search () { + if (_search_line_edit->text ().trimmed ().isEmpty ()) + return; // do nothing if search field is empty or only has whitespaces + if (_search_check_box->isChecked ()) { // Global search