175 |
175 |
176 default: |
176 default: |
177 break; |
177 break; |
178 } |
178 } |
179 |
179 |
180 const char* defstr = (cfg->getType() != CONFIG_keyseq) ? cfg->defaultstring : |
|
181 qchars (static_cast<keyseqconfig*> (cfg)->defval.toString ()); |
|
182 |
|
183 // Write the entry now. |
180 // Write the entry now. |
184 fprint (f, "\n# [%1] default: %2\n", g_ConfigTypeNames[cfg->getType()], defstr); |
|
185 fprint (f, "%1=%2\n", cfg->name, valstring); |
181 fprint (f, "%1=%2\n", cfg->name, valstring); |
186 } |
182 } |
187 |
183 |
188 f.close (); |
184 f.close (); |
189 return true; |
185 return true; |