Fix for correctly reflecting Input Profile option in the UI.

If auto-matched camera-specific ICC profile is not found Editor UI falls back to reflect "Camera standard" option.
This commit is contained in:
Michael Ezra
2012-01-29 10:58:49 -05:00
parent 9e89474a20
commit d3d15b4854
2 changed files with 7 additions and 1 deletions

View File

@@ -207,6 +207,12 @@ void ICMPanel::read (const ProcParams* pp, const ParamsEdited* pedited) {
icameraICC->set_active (true);
ckbBlendCMSMatrix->set_sensitive (true);
}
else if ((pp->icm.input == "(cameraICC)") && icameraICC->get_state()==Gtk::STATE_INSENSITIVE) {
// this is the case when (cameraICC) is instructed by packaged profiles, but ICC file is not found
// therefore falling back UI to explicitly reflect the (camera) option
icamera->set_active (true);
ckbBlendCMSMatrix->set_sensitive (false);
}
else if ((pp->icm.input == "(camera)" || pp->icm.input=="") && icamera->get_state()!=Gtk::STATE_INSENSITIVE) {
icamera->set_active (true);
ckbBlendCMSMatrix->set_sensitive (false);