aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/FileList.py4
-rw-r--r--lib/python/Components/config.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py
index 5824747d..3e38bd06 100644
--- a/lib/python/Components/FileList.py
+++ b/lib/python/Components/FileList.py
@@ -127,8 +127,8 @@ class FileList(MenuList):
if directory is None and self.showMountpoints: # present available mountpoints
for p in harddiskmanager.getMountedPartitions():
- path = os_path.join(p.mountpoint,"")
- if not self.inhibitMounts or ((not path in self.inhibitMounts) and (not self.inParentDirs(path, self.inhibitDirs))):
+ path = os_path.join(p.mountpoint, "")
+ if path not in self.inhibitMounts and not self.inParentDirs(path, self.inhibitDirs):
self.list.append(FileEntryComponent(name = p.description, absolute = path, isDir = True))
files = [ ]
directories = [ ]
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 529b6020..8cb70987 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -935,6 +935,7 @@ class ConfigSet(ConfigElement):
class ConfigLocations(ConfigElement):
def __init__(self, default = [], visible_width = False):
ConfigElement.__init__(self)
+ self.visible_width = visible_width
self.pos = -1
self.default = default
self.locations = []