Prevent copies when querying theme
This commit is contained in:
parent
f21bf5f97e
commit
497c3df50e
4 changed files with 38 additions and 18 deletions
|
|
@ -663,7 +663,7 @@ UserSettings::applyTheme()
|
|||
} else {
|
||||
stylefile.setFileName(QStringLiteral(":/styles/styles/system.qss"));
|
||||
}
|
||||
QApplication::setPalette(Theme::paletteFromTheme(this->theme().toStdString()));
|
||||
QApplication::setPalette(Theme::paletteFromTheme(this->theme()));
|
||||
|
||||
stylefile.open(QFile::ReadOnly);
|
||||
QString stylesheet = QString(stylefile.readAll());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue