Ensure Device Type Tile reflects change on edit (#4633)

This commit is contained in:
Paul Johnson
2025-05-05 23:04:02 +01:00
committed by GitHub
parent 60a0aa3e1d
commit 969f8c22d3

View File

@@ -201,11 +201,19 @@ MetadataDialog::okClicked()
// Update special field // Update special field
if ((field_.name == "Device") && (rideF->deviceType() != text)) { if ((field_.name == "Device") && (rideF->deviceType() != text)) {
// Update the device value in the ride file.
rideF->setDeviceType(text); rideF->setDeviceType(text);
// rideFile is now dirty!
rideI->setDirty(true);
// refresh as state has changed
rideI->notifyRideMetadataChanged();
} else if (rideF->getTag(field_.name, "") != text) { } else if (rideF->getTag(field_.name, "") != text) {
// Update the metadata value in the tile and ride file. // Update the metadata value in the ride file.
rideF->setTag(field_.name, text); rideF->setTag(field_.name, text);
// rideFile is now dirty! // rideFile is now dirty!