Fixed an issue where the text element metadata property could crash the application if set to 'emulator'.

This commit is contained in:
Leon Styhre 2023-02-22 18:05:25 +01:00
parent c523ee05a8
commit 5f66cb80d8

View file

@ -849,7 +849,7 @@ void GamelistView::updateView(const CursorState& state)
else if (metadata == "altemulator")
return file->metadata.get("altemulator");
else if (metadata == "emulator")
return (file->getType() == FOLDER) ?
return (file->getType() == FOLDER || file->getType() == PLACEHOLDER) ?
"" :
(file->metadata.get("altemulator") != "" ?
file->metadata.get("altemulator") :