Fix media directory path
This commit is contained in:
@@ -18,7 +18,10 @@ MusicSelector::MusicSelector(QWidget* parent)
|
||||
setLayout(flow);
|
||||
|
||||
// Set Media Folder
|
||||
QString projectRoot = QDir(QFileInfo(__FILE__).absolutePath()).absoluteFilePath("../../../");
|
||||
QString projectRoot = QDir(QCoreApplication::applicationDirPath())
|
||||
.absoluteFilePath("../../../../.."); // Escape the .app bundle
|
||||
|
||||
// Now manually append your real resources dir:
|
||||
QString mediaFolder = projectRoot + "/resources/media";
|
||||
|
||||
// Debug Media Path
|
||||
|
||||
Reference in New Issue
Block a user