Save [time_area]s id only if it is not empty.
This commit is contained in:
parent
8604edd226
commit
de239ae2e5
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ config tod_manager::to_config() const
|
|||
t->write(area.add_child("time"));
|
||||
}
|
||||
area["current_time"] = i->currentTime;
|
||||
area["id"] = i->id;
|
||||
if (!i->id.empty())
|
||||
area["id"] = i->id;
|
||||
}
|
||||
return cfg;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue