home · contact · privacy
Again fix broken sorter …
authorChristian Heller <c.heller@plomlompom.de>
Tue, 10 Sep 2024 00:04:35 +0000 (02:04 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 10 Sep 2024 00:04:35 +0000 (02:04 +0200)
browser.py

index 65aa290decf7d4fecb09ded37e530de78cac420f..720124103f9ca72b8fa37aec1f3bcc3b6daf300e 100755 (executable)
@@ -288,6 +288,12 @@ class MainWindow(Gtk.Window):
                     return +1
             # apply self.sort_order within DirItems and FileItems (separately)
             for key in self.sort_order:
+                a_cmp = None
+                b_cmp = None
+                if hasattr(a, key):
+                    a_cmp = getattr(a, key)
+                if hasattr(b, key):
+                    b_cmp = getattr(b, key)
                 if a_cmp is None and b_cmp is None:
                     continue
                 if a_cmp is None: