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