mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
RideEditor anomaly button enable/disable
.. if there are/aren't any anomalies in the ride.
This commit is contained in:
@@ -431,6 +431,10 @@ AnomalyDialog::check()
|
||||
counter++;
|
||||
}
|
||||
|
||||
// enable the toolbar / disable for anomalies found
|
||||
if (counter) rideEditor->checkAct->setEnabled(true);
|
||||
else rideEditor->checkAct->setEnabled(false);
|
||||
|
||||
// redraw - even if no anomalies were found since
|
||||
// some may have been highlighted previouslt. This is
|
||||
// an expensive operation, but then so is the check()
|
||||
|
||||
Reference in New Issue
Block a user