1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-06 10:32:44 +00:00

Resolved remaining issues with ApiModel

This commit is contained in:
Chris Josten 2021-03-29 17:10:25 +02:00
parent 89fef6d7f4
commit 9abee12658
8 changed files with 79 additions and 66 deletions

View file

@ -19,7 +19,11 @@
#include "JellyfinQt/viewmodel/itemmodel.h"
#define JF_CASE(roleName) case roleName: \
return QVariant(item.roleName());
try { \
return QVariant(item.roleName()); \
} catch(std::bad_optional_access e) { \
return QVariant(); \
}
namespace Jellyfin {