[nautilus-actions] NAIContext: fix scheme test



commit 825c800d3385d398cc9470f83ac3f35327015917
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri Dec 9 09:06:51 2011 +0100

    NAIContext: fix scheme test

 ChangeLog              |    4 ++++
 src/core/na-icontext.c |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e5e1dfb..0f62496 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-12-09 Pierre Wieser <pwieser trychlos org>
+
+	* src/core/na-icontext.c (is_compatible_scheme): Fix scheme test.
+
 2011-12-06 Pierre Wieser <pwieser trychlos org>
 
 	* src/utils/na-gconf2key.sh.in:
diff --git a/src/core/na-icontext.c b/src/core/na-icontext.c
index 25b126a..04dfc7e 100644
--- a/src/core/na-icontext.c
+++ b/src/core/na-icontext.c
@@ -1008,6 +1008,7 @@ is_candidate_for_schemes( const NAIContext *object, guint target, GList *files )
 		na_core_utils_slist_free( schemes );
 	}
 
+	g_debug( "%s: ok=%s", thisfn, ok ? "True":"False" );
 	return( ok );
 }
 
@@ -1018,7 +1019,7 @@ is_compatible_scheme( const gchar *pattern, const gchar *scheme )
 
 	compatible = FALSE;
 
-	if( strcmp( pattern, "*" )){
+	if( strcmp( pattern, "*" ) == 0 ){
 		compatible = TRUE;
 	} else {
 		compatible = ( strcmp( pattern, scheme ) == 0 );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]