Fix using UTF-8 characters in the schema names

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 9 years ago
parent 0fc8bd091a
commit 5d3112684b

@ -2013,7 +2013,7 @@ void DominoStyleConfig::tabPv9(int i) {
tabBarBottom->repaint(false); tabBarBottom->repaint(false);
} }
void DominoStyleConfig::loadConfig(const char* name) { void DominoStyleConfig::loadConfig(const QString &name) {
QColor background = qApp->palette().active().background(); QColor background = qApp->palette().active().background();
QColor button = qApp->palette().active().button(); QColor button = qApp->palette().active().button();
@ -2502,13 +2502,13 @@ void DominoStyleConfig::userLoadTabConfig() {
((DominoQTabWidget*)prevBottomTabWidget)->tabBar()->setUpdatesEnabled(true); ((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; QString fName;
QSettings s; QSettings s;
int c; int c;
if(!strcmp(fileName, "domino")) if(fileName == "domino")
fName = fileName; fName = fileName;
else else
fName = QString("domino_").append(fileName); fName = QString("domino_").append(fileName);

@ -493,8 +493,8 @@ protected:
DSurface* currentScrollBarSurface; DSurface* currentScrollBarSurface;
DSurface* currentTabSurface; DSurface* currentTabSurface;
void loadConfig(const char* name); void loadConfig(const QString &name);
void saveConfig(const char* fileName, const char* schemeName); void saveConfig(const QString &fileName, const QString &schemeName);
void getConfigSchemes(); void getConfigSchemes();

Loading…
Cancel
Save