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:
parent
89fef6d7f4
commit
9abee12658
8 changed files with 79 additions and 66 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue