disable vignetting or distortion correction checkboxes if the selected lensfun profile doesn't support them

Patch by heckflosse
This commit is contained in:
Alberto Griggio
2017-09-12 16:41:25 +02:00
parent fea0fbe776
commit 2d1cca8cbb
3 changed files with 22 additions and 0 deletions

View File

@@ -250,6 +250,8 @@ void LensProfilePanel::updateLensfunWarning()
if (l.getCropFactor() - c.getCropFactor() >= 0.01) {
warning->show();
}
ckbUseVign->set_sensitive(l.hasVignettingCorrection());
ckbUseDist->set_sensitive(l.hasDistortionCorrection());
}
}