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);
}
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);

@ -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();

Loading…
Cancel
Save