mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Ensure Device Type Tile reflects change on edit (#4633)
This commit is contained in:
@@ -201,11 +201,19 @@ MetadataDialog::okClicked()
|
||||
|
||||
// Update special field
|
||||
if ((field_.name == "Device") && (rideF->deviceType() != text)) {
|
||||
|
||||
// Update the device value in the ride file.
|
||||
rideF->setDeviceType(text);
|
||||
|
||||
// rideFile is now dirty!
|
||||
rideI->setDirty(true);
|
||||
|
||||
// refresh as state has changed
|
||||
rideI->notifyRideMetadataChanged();
|
||||
|
||||
} 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);
|
||||
|
||||
// rideFile is now dirty!
|
||||
|
||||
Reference in New Issue
Block a user