Browse Source

Fix using UTF-8 characters in the schema names

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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) {
2013 2013
 	tabBarBottom->repaint(false);
2014 2014
 }
2015 2015
 
2016
-void DominoStyleConfig::loadConfig(const char* name) {
2016
+void DominoStyleConfig::loadConfig(const QString &name) {
2017 2017
 
2018 2018
 	QColor background = qApp->palette().active().background();
2019 2019
 	QColor button = qApp->palette().active().button();
@@ -2502,13 +2502,13 @@ void DominoStyleConfig::userLoadTabConfig() {
2502 2502
 	((DominoQTabWidget*)prevBottomTabWidget)->tabBar()->setUpdatesEnabled(true);
2503 2503
 }
2504 2504
 
2505
-void DominoStyleConfig::saveConfig(const char* fileName, const char* schemeName ) {
2505
+void DominoStyleConfig::saveConfig(const QString &fileName, const QString &schemeName ) {
2506 2506
 	
2507 2507
 	QString fName;
2508 2508
 	QSettings s;
2509 2509
 	int c;
2510 2510
 
2511
-	if(!strcmp(fileName, "domino"))
2511
+	if(fileName == "domino")
2512 2512
 		fName = fileName;
2513 2513
 	else
2514 2514
 		fName = QString("domino_").append(fileName);

+ 2
- 2
dominoConfig/dominoconf.h View File

@@ -493,8 +493,8 @@ protected:
493 493
 	DSurface* currentScrollBarSurface;
494 494
 	DSurface* currentTabSurface;
495 495
 	
496
-	void loadConfig(const char* name);
497
-	void saveConfig(const char* fileName, const char* schemeName);
496
+	void loadConfig(const QString &name);
497
+	void saveConfig(const QString &fileName, const QString &schemeName);
498 498
 	void getConfigSchemes();
499 499
 	
500 500
 

Loading…
Cancel
Save