diff options
Diffstat (limited to 'mediaplayer/mediaplayer.cpp')
-rw-r--r-- | mediaplayer/mediaplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediaplayer/mediaplayer.cpp b/mediaplayer/mediaplayer.cpp index 2a24464..0ef7d34 100644 --- a/mediaplayer/mediaplayer.cpp +++ b/mediaplayer/mediaplayer.cpp @@ -156,10 +156,10 @@ void Mediaplayer::volume(int volume) control("volume", parameter); } -void Mediaplayer::loop(int state) +void Mediaplayer::loop(QString state) { QJsonObject parameter; - parameter.insert("state", state ? "true" : "false"); + parameter.insert("state", state); control("loop", parameter); } |