From aaa82dce75a9e338201b48dc5eb5717580bb8b1a Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 8 Jul 2018 09:42:48 +0000 Subject: [PATCH] Fix custom highlight sounds not working on Linux --- src/providers/twitch/TwitchChannel.cpp | 1 + src/providers/twitch/TwitchMessageBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index 61de45318..4c1285f6f 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -13,6 +13,7 @@ #include "util/PostToThread.hpp" #include +#include #include #include diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index e54d71202..f21426a76 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -440,7 +440,7 @@ void TwitchMessageBuilder::parseHighlights() // update the media player url if necessary QUrl highlightSoundUrl; if (app->settings->customHighlightSound) { - highlightSoundUrl = QUrl(app->settings->pathHighlightSound.getValue()); + highlightSoundUrl = QUrl::fromLocalFile(app->settings->pathHighlightSound.getValue()); } else { highlightSoundUrl = QUrl("qrc:/sounds/ping2.wav"); }