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

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:35:05 CEST 2016


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

gottcode pushed a commit to annotated tag v1.4.1
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 3cb3e8864f7100949d12bdcaf3fdb327ec688b73
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