Fix fixing the windows build

This commit is contained in:
Nicolas Fella 2020-09-10 00:34:31 +02:00
parent 6a018fa2a6
commit 64124fb30f

View file

@ -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);