src/config.cpp

changeset 298
f945fc8dae9e
parent 290
be0c367e7420
child 299
db60288fc36a
equal deleted inserted replaced
297:2cbd8ac8293b 298:f945fc8dae9e
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;

mercurial