diff libgui/src/documentation.cc @ 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 c39d26971f4b
children dcc3a8065ccd f8434681af15
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