RideEditor anomaly button enable/disable

.. if there are/aren't any anomalies in the ride.
This commit is contained in:
Mark Liversedge
2013-02-11 20:23:44 +00:00
parent b8cb2b7afd
commit 3989ce4b81

View File

@@ -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()