From 3623f66927da68814ea0d1fe5a8fc9105ce90243 Mon Sep 17 00:00:00 2001 From: bsongis Date: Thu, 19 Jun 2014 16:29:55 +0200 Subject: [PATCH] Does it fix #1212 on Windows? --- companion/src/modeledit/customfunctions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/companion/src/modeledit/customfunctions.cpp b/companion/src/modeledit/customfunctions.cpp index 41edf31b3..dec530b7c 100644 --- a/companion/src/modeledit/customfunctions.cpp +++ b/companion/src/modeledit/customfunctions.cpp @@ -266,7 +266,11 @@ void CustomFunctionsPanel::playMusic() else { phononCurrent = index; clickObject->clear(); +#ifdef __APPLE__ clickObject->setCurrentSource(QUrl("file://"+track)); +#else + clickObject->setCurrentSource(QUrl(track)); +#endif clickObject->play(); playBT[index]->setIcon(CompanionIcon("stop.png")); }