Skip to content

Commit

Permalink
Fix playlist parsing
Browse files Browse the repository at this point in the history
qx-json.h currently requires all declarative JSON types to have a toJson
and fromJson function even if only one is used. Eventually this will be
remedied, but for now we throw in a shell function to satisfy the
compiler.
  • Loading branch information
oblivioncth committed Oct 5, 2024
1 parent ac7931a commit 183a479
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/fp-playlistmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ QX_JSON_MEMBER_OVERRIDE(Json::Playlist, icon,

return member.isNull() ? convErr : Qx::JsonError();
}

// TODO: Kill this once Qx is updated to no longer require it
static QString toJson(const QImage& member)
{
Q_UNUSED(member);
qCritical("SHOULD NOT BE USED");
return "";
}
)

namespace Fp
Expand Down

0 comments on commit 183a479

Please sign in to comment.