mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Images chart update on image drop and import
Image import notifies rideMetadataChanged for the item Python chart re-evaluates the script on item changes
This commit is contained in:
@@ -362,6 +362,7 @@ PythonChart::PythonChart(Context *context, bool ridesummary) : GcChartWindow(con
|
||||
|
||||
if (ridesummary) {
|
||||
connect(this, SIGNAL(rideItemChanged(RideItem*)), this, SLOT(runScript()));
|
||||
connect(context, SIGNAL(rideChanged(RideItem*)), this, SLOT(runScript()));
|
||||
|
||||
// refresh when comparing
|
||||
connect(context, SIGNAL(compareIntervalsStateChanged(bool)), this, SLOT(runScript()));
|
||||
|
||||
@@ -1665,6 +1665,8 @@ RideItem::addImage(QString filename)
|
||||
|
||||
// make sure it gets saved !
|
||||
setDirty(true);
|
||||
// lets others know metadata has changed
|
||||
notifyRideMetadataChanged();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user