From ea462ae7d7f2bd41ac283c6f9b2b3da0e84a08d6 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 15 Aug 2017 22:03:10 +0200 Subject: [PATCH] stylesheets: fix default not working --- rpcs3/rpcs3qt/gui_settings.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/gui_settings.cpp b/rpcs3/rpcs3qt/gui_settings.cpp index 90753e7cb6..259abff978 100644 --- a/rpcs3/rpcs3qt/gui_settings.cpp +++ b/rpcs3/rpcs3qt/gui_settings.cpp @@ -297,5 +297,12 @@ QStringList gui_settings::GetStylesheetEntries() QString gui_settings::GetCurrentStylesheetPath() { - return settingsDir.absoluteFilePath(GetValue(GUI::m_currentStylesheet).toString() + ".qss"); + QString stylesheet = GetValue(GUI::m_currentStylesheet).toString(); + + if (stylesheet == "default") + { + return ""; + } + + return settingsDir.absoluteFilePath(stylesheet + ".qss"); }