disable 'autofill' setting when using lensfun
This commit is contained in:
@@ -210,16 +210,8 @@ void LensProfilePanel::read(const rtengine::procparams::ProcParams* pp, const Pa
|
||||
if (corrLensfunManual->get_active() && !checkLensfunCanCorrect(false)) {
|
||||
corrOff->set_active(true);
|
||||
}
|
||||
// if (metadata) {
|
||||
// std::unique_ptr<LFModifier> mod(LFDatabase::findModifier(pp->lensProf, metadata, 100, 100, pp->coarse, -1));
|
||||
// if (!mod) {
|
||||
// if (pp->lensProf.useLensfun) {
|
||||
// corrOff->set_active(true);
|
||||
// }
|
||||
// corrLensfunAuto->set_sensitive(false);
|
||||
// }
|
||||
// }
|
||||
|
||||
setAutoFill();
|
||||
enableListener ();
|
||||
conUseDist.block(false);
|
||||
}
|
||||
@@ -514,6 +506,8 @@ void LensProfilePanel::onCorrModeChanged()
|
||||
|
||||
mode = M("GENERAL_UNCHANGED");
|
||||
}
|
||||
|
||||
setAutoFill();
|
||||
|
||||
if (listener) {
|
||||
listener->panelChanged(EvLensCorrMode, mode);
|
||||
@@ -534,6 +528,23 @@ bool LensProfilePanel::checkLensfunCanCorrect(bool automatch)
|
||||
}
|
||||
|
||||
|
||||
void LensProfilePanel::setAutoFill()
|
||||
{
|
||||
if (lensgeomLcpFill) {
|
||||
bool b = lensgeomLcpFill->disableListener();
|
||||
if (corrLensfunAuto->get_active() || corrLensfunManual->get_active()) {
|
||||
lensgeomLcpFill->getFill()->set_active(true);
|
||||
lensgeomLcpFill->getFill()->set_sensitive(false);
|
||||
} else {
|
||||
lensgeomLcpFill->getFill()->set_sensitive(true);
|
||||
}
|
||||
if (b) {
|
||||
lensgeomLcpFill->enableListener();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LFDbHelper
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user