forked from openlp/openlp
Merge branch 'icon-for-audio-files' into 'master'
changed so audio files are correctly identified See merge request openlp/openlp!307
This commit is contained in:
commit
819353b897
@ -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