Browse Source

Fix using UTF-8 characters in the schema names

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 years ago
parent
commit
5d3112684b
2 changed files with 5 additions and 5 deletions
  1. 3
    3
      dominoConfig/dominoconf.cpp
  2. 2
    2
      dominoConfig/dominoconf.h

+ 3
- 3
dominoConfig/dominoconf.cpp View File

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

+ 2
- 2
dominoConfig/dominoconf.h View File

@@ -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