Commit 64124fb3 authored by Nicolas Fella's avatar Nicolas Fella

Fix fixing the windows build

parent 6a018fa2
Pipeline #33738 passed with stage
in 13 minutes and 10 seconds
......@@ -44,17 +44,17 @@ bool PauseMusicPlugin::receivePacket(const NetworkPacket& np)
bool pauseOnlyWhenTalking = config()->getBool(QStringLiteral("conditionTalking"), false);
if (pauseOnlyWhenTalking) {
if (np.getString(QStringLiteral("event")) != QLatin1String("talking")) {
if (np.get<QString>(QStringLiteral("event")) != QLatin1String("talking")) {
return true;
}
} else {
if (np.getString(QStringLiteral("event")) != QLatin1String("ringing")
&& np.getString(QStringLiteral("event")) != QLatin1String("talking")) {
if (np.get<QString>(QStringLiteral("event")) != QLatin1String("ringing")
&& np.get<QString>(QStringLiteral("event")) != QLatin1String("talking")) {
return true;
}
}
bool pauseConditionFulfilled = !np.getBool(QStringLiteral("isCancel"));
bool pauseConditionFulfilled = !np.get<bool>(QStringLiteral("isCancel"));
bool pause = config()->getBool(QStringLiteral("actionPause"), false);
bool mute = config()->getBool(QStringLiteral("actionMute"), true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment