diff --git a/plugins/pausemusic/pausemusicplugin-win.cpp b/plugins/pausemusic/pausemusicplugin-win.cpp index dd15a5965..1cee9de7c 100644 --- a/plugins/pausemusic/pausemusicplugin-win.cpp +++ b/plugins/pausemusic/pausemusicplugin-win.cpp @@ -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(QStringLiteral("event")) != QLatin1String("talking")) { return true; } } else { - if (np.getString(QStringLiteral("event")) != QLatin1String("ringing") - && np.getString(QStringLiteral("event")) != QLatin1String("talking")) { + if (np.get(QStringLiteral("event")) != QLatin1String("ringing") + && np.get(QStringLiteral("event")) != QLatin1String("talking")) { return true; } } - bool pauseConditionFulfilled = !np.getBool(QStringLiteral("isCancel")); + bool pauseConditionFulfilled = !np.get(QStringLiteral("isCancel")); bool pause = config()->getBool(QStringLiteral("actionPause"), false); bool mute = config()->getBool(QStringLiteral("actionMute"), true);