|
|
@ -133,10 +133,10 @@ void KNetStats::configCancel() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KNetStats::saveConfig(const OptionsMap& options) {
|
|
|
|
void KNetStats::saveConfig(const OptionsMap& options) {
|
|
|
|
KConfig* cfg = kapp->config();
|
|
|
|
TDEConfig* cfg = kapp->config();
|
|
|
|
|
|
|
|
|
|
|
|
for(OptionsMap::ConstIterator i = options.begin(); i != options.end(); ++i) {
|
|
|
|
for(OptionsMap::ConstIterator i = options.begin(); i != options.end(); ++i) {
|
|
|
|
KConfigGroupSaver groupSaver(cfg, i.key());
|
|
|
|
TDEConfigGroupSaver groupSaver(cfg, i.key());
|
|
|
|
const KNetStatsView::Options& opt = i.data();
|
|
|
|
const KNetStatsView::Options& opt = i.data();
|
|
|
|
// general
|
|
|
|
// general
|
|
|
|
cfg->writeEntry("UpdateInterval", opt.mUpdateInterval);
|
|
|
|
cfg->writeEntry("UpdateInterval", opt.mUpdateInterval);
|
|
|
|