show "nothing connected" instead of empty filelist with only mountpoints shown
authorFraxinas <andreas.frisch@multimedia-labs.de>
Fri, 13 Aug 2010 20:00:08 +0000 (22:00 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 6 Oct 2010 21:59:24 +0000 (23:59 +0200)
lib/python/Components/FileList.py

index 841a2fe..1d71514 100755 (executable)
@@ -196,6 +196,9 @@ class FileList(MenuList):
                                if (self.matchingPattern is None) or re_compile(self.matchingPattern).search(path):
                                        self.list.append(FileEntryComponent(name = name, absolute = x , isDir = False))
 
+               if self.showMountpoints and len(self.list) == 0:
+                       self.list.append(FileEntryComponent(name = _("nothing connected"), absolute = None, isDir = False))
+
                self.l.setList(self.list)
 
                if select is not None: