Fix EXIF when resetting history with batch edit
Resetting the history to the first entry in the batch edit tab caused all the EXIF keys to become selected. There should be no modifications to the selection because EXIF editing is not available in batch edit mode.
This commit is contained in:
@@ -79,8 +79,10 @@ void MetaDataPanel::read(const rtengine::procparams::ProcParams* pp, const Param
|
||||
}
|
||||
}
|
||||
|
||||
exifpanel->read(pp, pedited);
|
||||
iptcpanel->read(pp, pedited);
|
||||
if (!batchMode) { // Not used in batch mode.
|
||||
exifpanel->read(pp, pedited);
|
||||
iptcpanel->read(pp, pedited);
|
||||
}
|
||||
|
||||
enableListener();
|
||||
}
|
||||
@@ -94,8 +96,10 @@ void MetaDataPanel::write(rtengine::procparams::ProcParams* pp, ParamsEdited* pe
|
||||
pedited->metadata.mode = metadataMode->get_active_row_number() != 3;
|
||||
}
|
||||
|
||||
exifpanel->write(pp, pedited);
|
||||
iptcpanel->write(pp, pedited);
|
||||
if (!batchMode) { // Invalid in batch mode.
|
||||
exifpanel->write(pp, pedited);
|
||||
iptcpanel->write(pp, pedited);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user