retain meter state when it is reinit'ed in the Setup screen

This commit is contained in:
Hisham Muhammad
2011-03-31 20:24:59 +00:00
parent b57b7e9a9e
commit bd459776a4
2 changed files with 10 additions and 6 deletions

View File

@ -155,8 +155,9 @@ Meter* Meter_new(ProcessList* pl, int param, MeterType* type) {
}
void Meter_delete(Object* cast) {
if (!cast)
return;
Meter* this = (Meter*) cast;
assert (this != NULL);
if (this->type->done) {
this->type->done(this);
}