Issue 2743:Disable vignetting correction LCP checkbox when working on non-raw images
This commit is contained in:
@@ -94,8 +94,8 @@ void LensProfilePanel::read(const rtengine::procparams::ProcParams* pp, const Pa
|
||||
}
|
||||
|
||||
ckbUseDist->set_active (pp->lensProf.useDist);
|
||||
ckbUseVign->set_active (pp->lensProf.useVign);
|
||||
ckbUseCA->set_active (pp->lensProf.useCA);
|
||||
ckbUseVign->set_active (pp->lensProf.useVign && isRaw);
|
||||
ckbUseCA->set_active (pp->lensProf.useCA && isRaw);
|
||||
|
||||
lcpFileChanged=useDistChanged=useVignChanged=useCAChanged=false;
|
||||
|
||||
@@ -113,6 +113,7 @@ void LensProfilePanel::setRawMeta(bool raw, const rtengine::ImageMetaData* pMeta
|
||||
|
||||
enableListener();
|
||||
}
|
||||
isRaw=raw;
|
||||
}
|
||||
|
||||
void LensProfilePanel::write( rtengine::procparams::ProcParams* pp, ParamsEdited* pedited)
|
||||
@@ -172,6 +173,6 @@ void LensProfilePanel::onUseCAChanged()
|
||||
|
||||
void LensProfilePanel::updateDisabled(bool enable) {
|
||||
ckbUseDist->set_sensitive(enable);
|
||||
ckbUseVign->set_sensitive(enable);
|
||||
ckbUseVign->set_sensitive(enable && isRaw);
|
||||
ckbUseCA->set_sensitive(enable && allowFocusDep);
|
||||
}
|
||||
|
@@ -36,6 +36,7 @@ protected:
|
||||
sigc::connection conLCPFile, conUseDist, conUseVign, conUseCA;
|
||||
void updateDisabled(bool enable);
|
||||
bool allowFocusDep;
|
||||
bool isRaw;
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user