forked from openlp/openlp
search changed so audio files are correctly identified
This commit is contained in:
parent
8123f9d920
commit
9268194ca0
@ -279,7 +279,7 @@ class MediaMediaItem(MediaManagerItem, RegistryProperties):
|
|||||||
# Normal media file handling.
|
# Normal media file handling.
|
||||||
file_name = os.path.split(track_str)[1]
|
file_name = os.path.split(track_str)[1]
|
||||||
item_name = QtWidgets.QListWidgetItem(file_name)
|
item_name = QtWidgets.QListWidgetItem(file_name)
|
||||||
search = file_name.split('.')[-1].lower()
|
search = "*." + file_name.split('.')[-1].lower()
|
||||||
if search in AUDIO_EXT:
|
if search in AUDIO_EXT:
|
||||||
item_name.setIcon(UiIcons().audio)
|
item_name.setIcon(UiIcons().audio)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user