aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/FileList.py
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-08-13 22:00:08 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-10-06 23:59:24 +0200
commit910c0d916209bb6607b0def237b6c38e27906426 (patch)
tree76ef6108d8ec7c4ff630b02e24e59167701be626 /lib/python/Components/FileList.py
parente4377b927b5fbbc01ff6f9e62b9ca5f7343d033f (diff)
downloadenigma2-910c0d916209bb6607b0def237b6c38e27906426.tar.gz
enigma2-910c0d916209bb6607b0def237b6c38e27906426.zip
show "nothing connected" instead of empty filelist with only mountpoints shown
Diffstat (limited to 'lib/python/Components/FileList.py')
-rwxr-xr-xlib/python/Components/FileList.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py
index 841a2fe5..1d71514b 100755
--- a/lib/python/Components/FileList.py
+++ b/lib/python/Components/FileList.py
@@ -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: