Fixed non existing variable under certain conditions.

bzr-revno: 1999
This commit is contained in:
Andreas Preikschat 2012-06-19 15:02:10 +02:00 committed by Raoul Snyman
commit bb814eacb9
1 changed files with 4 additions and 2 deletions

View File

@ -349,8 +349,9 @@ class MediaManagerItem(QtGui.QWidget):
can run it. can run it.
``files`` ``files``
The list of files to be loaded The list of files to be loaded
""" """
#FIXME: change local variables to words_separated_by_underscores.
newFiles = [] newFiles = []
errorShown = False errorShown = False
for file in files: for file in files:
@ -366,7 +367,7 @@ class MediaManagerItem(QtGui.QWidget):
errorShown = True errorShown = True
else: else:
newFiles.append(file) newFiles.append(file)
if file: if files:
self.validateAndLoad(newFiles) self.validateAndLoad(newFiles)
def validateAndLoad(self, files): def validateAndLoad(self, files):
@ -377,6 +378,7 @@ class MediaManagerItem(QtGui.QWidget):
``files`` ``files``
The files to be loaded. The files to be loaded.
""" """
#FIXME: change local variables to words_separated_by_underscores.
names = [] names = []
fullList = [] fullList = []
for count in range(self.listView.count()): for count in range(self.listView.count()):