stylesheets: fix default not working
This commit is contained in:
@@ -297,5 +297,12 @@ QStringList gui_settings::GetStylesheetEntries()
|
|||||||
|
|
||||||
QString gui_settings::GetCurrentStylesheetPath()
|
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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user