diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-08-13 22:00:08 +0200 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-08-13 22:00:08 +0200 |
| commit | fbb3e9c9bcbd783d3236d0ff3109b2be7fa24177 (patch) | |
| tree | 5bae16574f4e4713eb9f1d7a947ad3d50ba0c1cc /lib/python/Components | |
| parent | a03c828dc011ddf93525ad9ed6eae77f3691be7f (diff) | |
| download | enigma2-fbb3e9c9bcbd783d3236d0ff3109b2be7fa24177.tar.gz enigma2-fbb3e9c9bcbd783d3236d0ff3109b2be7fa24177.zip | |
show "nothing connected" instead of empty filelist with only mountpoints shown
Diffstat (limited to 'lib/python/Components')
| -rwxr-xr-x | lib/python/Components/FileList.py | 3 |
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: |
