mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] small refactoring
This commit is contained in:
@ -86,7 +86,7 @@ public:
|
||||
auto isSystem() const -> bool;
|
||||
|
||||
private:
|
||||
CTheme(const QString& id = QString());
|
||||
CTheme(const QString& path = QString());
|
||||
~CTheme();
|
||||
|
||||
class CThemePrivate;
|
||||
|
||||
@ -922,7 +922,7 @@ void CMainWindow::onPortalUITheme(int viewid, const std::wstring& json)
|
||||
else m_pTabs->setTabTheme(index, "light", "#fff");
|
||||
} else {
|
||||
QJsonParseError jerror;
|
||||
QJsonDocument jdoc = QJsonDocument::fromJson(QString::fromStdWString(json).toLatin1(), &jerror);
|
||||
QJsonDocument jdoc = QJsonDocument::fromJson(QString::fromStdWString(json).toUtf8(), &jerror);
|
||||
|
||||
if( jerror.error == QJsonParseError::NoError ) {
|
||||
QJsonObject objRoot = jdoc.object();
|
||||
|
||||
Reference in New Issue
Block a user