diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index dfaafa545..b40fb09c3 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -85,9 +85,11 @@ OBSBasic::OBSBasic(QWidget *parent) int ret = os_get_config_path(styleSheetPath, sizeof(styleSheetPath), "obs-studio/basic/stylesheet.qss"); if (ret > 0) { - QFile styleSheet(QT_UTF8(styleSheetPath)); - if (styleSheet.open(QFile::ReadOnly)) - setStyleSheet(styleSheet.readAll()); + if (QFile::exists(styleSheetPath)) { + QString path = QString("file:///") + + QT_UTF8(styleSheetPath); + App()->setStyleSheet(path); + } } qRegisterMetaType ("OBSScene");