changeset 26770:2f550a8122d5 stable

Simply show the doc browser when the search query is empty (bug #55756). * documentation.cc (documentation::load_ref): Return early if the search string is empty.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Fri, 22 Feb 2019 11:12:02 +0100
parents 8cfe07381fc0
children 7cdb2b29a1ee 3b0af21841d4
files libgui/src/documentation.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/documentation.cc	Thu Feb 21 20:04:13 2019 +0100
+++ b/libgui/src/documentation.cc	Fri Feb 22 11:12:02 2019 +0100
@@ -600,7 +600,7 @@
 
   void documentation::load_ref (const QString& ref_name)
   {
-    if (! m_help_engine)
+    if (! m_help_engine || ref_name.isEmpty ())
       return;
 
     // First search in the function index