Fix custom highlight sounds not working on Linux
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
#include "util/PostToThread.hpp"
|
#include "util/PostToThread.hpp"
|
||||||
|
|
||||||
#include <IrcConnection>
|
#include <IrcConnection>
|
||||||
|
#include <QJsonArray>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ void TwitchMessageBuilder::parseHighlights()
|
|||||||
// update the media player url if necessary
|
// update the media player url if necessary
|
||||||
QUrl highlightSoundUrl;
|
QUrl highlightSoundUrl;
|
||||||
if (app->settings->customHighlightSound) {
|
if (app->settings->customHighlightSound) {
|
||||||
highlightSoundUrl = QUrl(app->settings->pathHighlightSound.getValue());
|
highlightSoundUrl = QUrl::fromLocalFile(app->settings->pathHighlightSound.getValue());
|
||||||
} else {
|
} else {
|
||||||
highlightSoundUrl = QUrl("qrc:/sounds/ping2.wav");
|
highlightSoundUrl = QUrl("qrc:/sounds/ping2.wav");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user