fixed non existing variable under certain conditions

This commit is contained in:
Andreas Preikschat 2012-06-17 17:41:36 +02:00
parent 264b2bfdbd
commit 87722c9579

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()):