diff --git a/rtgui/lensgeom.cc b/rtgui/lensgeom.cc index 5bcbf5494..fc1b0a1bd 100644 --- a/rtgui/lensgeom.cc +++ b/rtgui/lensgeom.cc @@ -119,28 +119,3 @@ void LensGeometry::setBatchMode (bool batchMode) removeIfThere (this, autoCrop); } -void LensGeometry::disableAutoFillIfActive () -{ - const auto func = [](gpointer data) -> gboolean { - GThreadLock lock; // Is this really needed? - - LensGeometry* const instance = static_cast(data); - - if (!instance->batchMode) { - if (instance->fill->get_active()) { - instance->fillConn.block(true); - instance->fill->set_active(false); - - if (instance->listener) { - instance->listener->panelChanged (EvTransAutoFill, M("GENERAL_DISABLED")); - } - - instance->fillConn.block(false); - } - } - - return FALSE; - }; - - idle_register.add(func, this); -} diff --git a/rtgui/lensgeom.h b/rtgui/lensgeom.h index 697fc73ce..29b0c7f20 100644 --- a/rtgui/lensgeom.h +++ b/rtgui/lensgeom.h @@ -54,7 +54,6 @@ public: { rlistener = l; } - void disableAutoFillIfActive (); private: IdleRegister idle_register; diff --git a/rtgui/lensprofile.cc b/rtgui/lensprofile.cc index 2f4526cad..cae283e9e 100644 --- a/rtgui/lensprofile.cc +++ b/rtgui/lensprofile.cc @@ -144,10 +144,6 @@ void LensProfilePanel::write( rtengine::procparams::ProcParams* pp, ParamsEdited void LensProfilePanel::onLCPFileChanged() { - - // Disable Auto-Fill when enabling LCP Distortion Correction, #1791 - lensgeomLcpFill->disableAutoFillIfActive(); - lcpFileChanged = true; updateDisabled(lcpStore->isValidLCPFileName(fcbLCPFile->get_filename())); @@ -170,12 +166,6 @@ void LensProfilePanel::onLCPFileReset() void LensProfilePanel::onUseDistChanged() { - - // Disable Auto-Fill when enabling LCP Distortion Correction, #1791 - if (ckbUseDist->get_active()) { - lensgeomLcpFill->disableAutoFillIfActive(); - } - useDistChanged = true; if (listener) {