[rhythmbox] shell: use uri_is_source when guessing sources for uris



commit 92e1b34d7c05bec64484439eba81c44c8484009a
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Sep 13 23:45:10 2012 +1000

    shell: use uri_is_source when guessing sources for uris

 shell/rb-shell.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-shell.c b/shell/rb-shell.c
index 67ba279..55d43cf 100644
--- a/shell/rb-shell.c
+++ b/shell/rb-shell.c
@@ -3341,6 +3341,9 @@ rb_shell_guess_source_for_uri (RBShell *shell,
 		RBSource *source;
 
 		source = (RBSource *)t->data;
+		if (rb_source_uri_is_source (source, uri))
+			return source;
+
 		s = rb_source_want_uri (source, uri);
 		if (s > strength) {
 			gchar *name;



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