Fix fixing the windows build
This commit is contained in:
parent
6a018fa2a6
commit
64124fb30f
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue