Mercurial > octave
changeset 27112:f8434681af15 stable
* documentation.cc (global_search): just return if query string is empty (bug #56388)
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Sat, 25 May 2019 14:30:01 +0200 |
parents | d2abbd8517d2 |
children | 5af449d4e1f4 |
files | libgui/src/documentation.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/documentation.cc Sat May 25 14:05:14 2019 +0200 +++ b/libgui/src/documentation.cc Sat May 25 14:30:01 2019 +0200 @@ -415,6 +415,9 @@ query_string = ""; #endif + if (query_string.isEmpty ()) + return; + // Get quoted search strings first, then take first string as fall back QRegExp rx ("\"([^\"]*)\""); if (rx.indexIn (query_string, 0) != -1)