Formatting

This commit is contained in:
Samuel Findlay 2012-06-06 00:14:50 +10:00
parent a9f97bf771
commit a79419d715
1 changed files with 4 additions and 4 deletions

View File

@ -515,10 +515,10 @@ class SongImportSourcePage(QtGui.QWizardPage):
else:
filepath = wizard.formatWidgets[format][u'filepathEdit'].text()
if not filepath.isEmpty():
if select_mode == SongFormatSelect.SingleFile\
and os.path.isfile(filepath):
if select_mode == SongFormatSelect.SingleFile \
and os.path.isfile(filepath):
return True
elif select_mode == SongFormatSelect.SingleFolder\
and os.path.isdir(filepath):
elif select_mode == SongFormatSelect.SingleFolder \
and os.path.isdir(filepath):
return True
return False