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.
``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 = []
errorShown = False
for file in files:
@ -366,7 +367,7 @@ class MediaManagerItem(QtGui.QWidget):
errorShown = True
else:
newFiles.append(file)
if file:
if files:
self.validateAndLoad(newFiles)
def validateAndLoad(self, files):
@ -377,6 +378,7 @@ class MediaManagerItem(QtGui.QWidget):
``files``
The files to be loaded.
"""
#FIXME: change local variables to words_separated_by_underscores.
names = []
fullList = []
for count in range(self.listView.count()):