Fix custom highlight sounds not working on Linux

This commit is contained in:
Rasmus Karlsson 2018-07-08 09:42:48 +00:00
parent d2450c298b
commit aaa82dce75
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@
#include "util/PostToThread.hpp"
#include <IrcConnection>
#include <QJsonArray>
#include <QThread>
#include <QTimer>

View file

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