[gnome-documents] sources: fixup source filtering



commit 793a48cf98af848c795598f20c35c8f2dd8bc06c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Aug 29 13:40:09 2011 -0400

    sources: fixup source filtering
    
    Commit a31cbcf494a056271bc64bedaaf9dc0a76af99fb broke source filtering
    for non-local resources.

 src/sources.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sources.js b/src/sources.js
index a7fb5a2..91e5a8a 100644
--- a/src/sources.js
+++ b/src/sources.js
@@ -49,7 +49,7 @@ Source.prototype = {
 
             let account = this.object.get_account();
             this.id = account.get_id();
-            this.name = account.get_name();
+            this.name = account.get_provider_name();
         } else {
             this.id = params.id;
             this.name = params.name;
@@ -117,7 +117,7 @@ Source.prototype = {
 
     _buildFilterResource: function(subject) {
         let filter =
-            ('(nie:dataSource(%s) = "<%s>")').format(subject, this.resourceUrn);
+            ('(nie:dataSource(%s) = "%s")').format(subject, this.resourceUrn);
 
         return filter;
     }



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