forked from openlp/openlp
Formatting
This commit is contained in:
parent
a9f97bf771
commit
a79419d715
@ -515,10 +515,10 @@ class SongImportSourcePage(QtGui.QWizardPage):
|
|||||||
else:
|
else:
|
||||||
filepath = wizard.formatWidgets[format][u'filepathEdit'].text()
|
filepath = wizard.formatWidgets[format][u'filepathEdit'].text()
|
||||||
if not filepath.isEmpty():
|
if not filepath.isEmpty():
|
||||||
if select_mode == SongFormatSelect.SingleFile\
|
if select_mode == SongFormatSelect.SingleFile \
|
||||||
and os.path.isfile(filepath):
|
and os.path.isfile(filepath):
|
||||||
return True
|
return True
|
||||||
elif select_mode == SongFormatSelect.SingleFolder\
|
elif select_mode == SongFormatSelect.SingleFolder \
|
||||||
and os.path.isdir(filepath):
|
and os.path.isdir(filepath):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user