Auto disable of "ICC standard profile" when non is available

see issue 938 (should have committed this before 4.0.3 :-( )
This commit is contained in:
Oliver Duis
2011-09-19 18:04:00 +02:00
parent e65d2bbf24
commit a744c9de6e
3 changed files with 8 additions and 6 deletions

View File

@@ -408,14 +408,14 @@ void ICMPanel::opChanged () {
listener->panelChanged (EvOProfile, onames->get_active_text());
}
void ICMPanel::setRaw (bool raw) {
void ICMPanel::setRawMeta (bool raw, const rtengine::ImageData* pMeta) {
disableListener ();
icamera->set_active (raw);
iembedded->set_active (!raw);
icamera->set_sensitive (raw);
icameraICC->set_sensitive (raw);
icameraICC->set_sensitive (raw && iccStore->getStdProfile(pMeta->getCamera()) != NULL);
iembedded->set_sensitive (!raw);
enableListener ();