Some changes suggested by Flössies code review, #4891
This commit is contained in:
@@ -104,6 +104,11 @@ FlatField::FlatField () : FoldableToolPanel(this, "flatfield", M("TP_FLATFIELD_L
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FlatField::~FlatField ()
|
||||||
|
{
|
||||||
|
idle_register.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
void FlatField::read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited)
|
void FlatField::read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited)
|
||||||
{
|
{
|
||||||
disableListener ();
|
disableListener ();
|
||||||
@@ -416,6 +421,7 @@ void FlatField::flatFieldAutoClipValueChanged(int n)
|
|||||||
me->disableListener();
|
me->disableListener();
|
||||||
me->flatFieldClipControl->setValue (d->n);
|
me->flatFieldClipControl->setValue (d->n);
|
||||||
me->enableListener();
|
me->enableListener();
|
||||||
|
delete d;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -62,6 +62,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
FlatField ();
|
FlatField ();
|
||||||
|
~FlatField ();
|
||||||
|
|
||||||
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
|
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
|
||||||
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
|
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
|
||||||
|
Reference in New Issue
Block a user