changeset 24829:d61b89d93c9c

fix case insensitive global search in document viewer (bug #53247) * texinfo-parser.cc (global_search): add missing Qt:CaseInsensitive
author Torsten <mttl@mailbox.org>
date Fri, 02 Mar 2018 22:48:28 +0100
parents 0f6a261ab144
children 5bcda4f98997
files libgui/src/qtinfo/texinfo-parser.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/qtinfo/texinfo-parser.cc	Fri Mar 02 15:37:31 2018 -0500
+++ b/libgui/src/qtinfo/texinfo-parser.cc	Fri Mar 02 22:48:28 2018 +0100
@@ -579,7 +579,9 @@
           int founds = 0;
 
           for (; founds < words.size ()
-                 && node_text.indexOf (words.at (founds)) >= 0; founds++)
+                 && node_text.indexOf (words.at (founds), 0,Qt::CaseInsensitive)
+                    >= 0;
+               founds++)
             { }
 
           if (founds < words.size ())