From 5d3112684ba2b692a07b0328ad308c402276e51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 6 Apr 2016 20:13:24 +0200 Subject: [PATCH] Fix using UTF-8 characters in the schema names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- dominoConfig/dominoconf.cpp | 6 +++--- dominoConfig/dominoconf.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dominoConfig/dominoconf.cpp b/dominoConfig/dominoconf.cpp index 056a745..d25e056 100644 --- a/dominoConfig/dominoconf.cpp +++ b/dominoConfig/dominoconf.cpp @@ -2013,7 +2013,7 @@ void DominoStyleConfig::tabPv9(int i) { tabBarBottom->repaint(false); } -void DominoStyleConfig::loadConfig(const char* name) { +void DominoStyleConfig::loadConfig(const QString &name) { QColor background = qApp->palette().active().background(); QColor button = qApp->palette().active().button(); @@ -2502,13 +2502,13 @@ void DominoStyleConfig::userLoadTabConfig() { ((DominoQTabWidget*)prevBottomTabWidget)->tabBar()->setUpdatesEnabled(true); } -void DominoStyleConfig::saveConfig(const char* fileName, const char* schemeName ) { +void DominoStyleConfig::saveConfig(const QString &fileName, const QString &schemeName ) { QString fName; QSettings s; int c; - if(!strcmp(fileName, "domino")) + if(fileName == "domino") fName = fileName; else fName = QString("domino_").append(fileName); diff --git a/dominoConfig/dominoconf.h b/dominoConfig/dominoconf.h index cac92b4..5f9915e 100644 --- a/dominoConfig/dominoconf.h +++ b/dominoConfig/dominoconf.h @@ -493,8 +493,8 @@ protected: DSurface* currentScrollBarSurface; DSurface* currentTabSurface; - void loadConfig(const char* name); - void saveConfig(const char* fileName, const char* schemeName); + void loadConfig(const QString &name); + void saveConfig(const QString &fileName, const QString &schemeName); void getConfigSchemes();