forked from openlp/openlp
fixed non existing variable under certain conditions
This commit is contained in:
parent
264b2bfdbd
commit
87722c9579
@ -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()):
|
||||
|
Loading…
Reference in New Issue
Block a user