-rw-r--r-- | noncore/apps/keyz-cfg/cfgfile.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/apps/keyz-cfg/cfgfile.cpp b/noncore/apps/keyz-cfg/cfgfile.cpp index 81d1ee1..be7150e 100644 --- a/noncore/apps/keyz-cfg/cfgfile.cpp +++ b/noncore/apps/keyz-cfg/cfgfile.cpp | |||
@@ -136,2 +136,6 @@ bool CfgParser::save(QString file, CfgFile& cfg) { | |||
136 | FILE* f = fopen((const char*) file.local8Bit(), "w"); | 136 | FILE* f = fopen((const char*) file.local8Bit(), "w"); |
137 | if (!f) { | ||
138 | oerr << "Could not write config file!" << oendl; | ||
139 | return false; | ||
140 | } | ||
137 | 141 | ||
@@ -147,3 +151,5 @@ bool CfgParser::save(QString file, CfgFile& cfg) { | |||
147 | QString l = entry->getLabel(); | 151 | QString l = entry->getLabel(); |
148 | if (!l.isEmpty()) { | 152 | if (l.isEmpty()) { |
153 | l = entry->getFile(); | ||
154 | } | ||
149 | fprintf(f, "\t<label name=\"%s\" state=\"km%d:*\"/>\n", | 155 | fprintf(f, "\t<label name=\"%s\" state=\"km%d:*\"/>\n", |
@@ -151,3 +157,2 @@ bool CfgParser::save(QString file, CfgFile& cfg) { | |||
151 | } | 157 | } |
152 | } | ||
153 | 158 | ||