[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 391/473: Fix not searching descriptions unless shown.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:59:21 CET 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 882ed56a3d52e361625b373971044ca3f4e15dc3
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Nov 18 11:36:21 2014 -0500

    Fix not searching descriptions unless shown.
---
 panel-plugin/launcher.cpp |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/launcher.cpp b/panel-plugin/launcher.cpp
index 2ed8c57..581bfc2 100644
--- a/panel-plugin/launcher.cpp
+++ b/panel-plugin/launcher.cpp
@@ -288,13 +288,10 @@ int Launcher::search(const Query& query)
 	}
 
 	// Sort matches in comments after matches in names
-	if (wm_settings->launcher_show_description)
+	match = query.match(m_search_comment);
+	if (match != G_MAXINT)
 	{
-		match = query.match(m_search_comment);
-		if (match != G_MAXINT)
-		{
-			match += 20;
-		}
+		match += 20;
 	}
 	return match;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list