[meld] recent: Fix recent-comparison existing comparison check



commit 2d60d11feee542de05ebb2422aa3c96144960e9e
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jun 21 09:52:42 2015 +1000

    recent: Fix recent-comparison existing comparison check
    
    Unicode in this module is awful and broken. For now, it's enough to
    know that we use encoded filenames for the existing comparison map,
    so need to match that up on the checking side.

 meld/recent.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/recent.py b/meld/recent.py
index 3aa0058..90db21a 100644
--- a/meld/recent.py
+++ b/meld/recent.py
@@ -93,10 +93,10 @@ class RecentFiles(object):
         if None in paths:
             return
 
-        paths = [unicodeify(p) for p in paths]
         # If a (type, paths) comparison is already registered, then re-add
         # the corresponding comparison file
         comparison_key = (comp_type, tuple(paths))
+        paths = [unicodeify(p) for p in paths]
         if comparison_key in self._stored_comparisons:
             gio_file = Gio.File.new_for_uri(self._stored_comparisons[comparison_key])
         else:


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