From 3ef618fb2d32eea7101046409fd84daef976a671 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Mon, 17 Sep 2007 17:38:51 +0000 Subject: [PATCH] twiddle-related bugfix git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@585 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/mbox/loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb index 9bad74e..29ca62b 100644 --- a/lib/sup/mbox/loader.rb +++ b/lib/sup/mbox/loader.rb @@ -28,7 +28,7 @@ class Loader < Source end def file_path; @path end - def is_source_for? uri; super || (URI(Source.expand_filesystem_uri(uri)).path == @path); end + def is_source_for? uri; super || (self.uri.is_a?(String) && (URI(Source.expand_filesystem_uri(uri)) == URI(Source.expand_filesystem_uri(self.uri)))) end def self.suggest_labels_for path ## heuristic: use the filename as a label, unless the file -- 2.45.2