aboutsummaryrefslogtreecommitdiff
path: root/src/main_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_window.cc')
-rw-r--r--src/main_window.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main_window.cc b/src/main_window.cc
index 39261dd..ad3a7fe 100644
--- a/src/main_window.cc
+++ b/src/main_window.cc
@@ -92,11 +92,13 @@ void MainWindow::open(const QString &path) {
dc, &DroneController::computeCollisions);
connect(settings_pane, &SettingsPane::sphereRadiusChanged,
dc, &DroneController::displaySpheres);
+ dc->computeCollisions(settings_pane->getSphereRadius());
connect(settings_pane, &SettingsPane::speedLimitChanged,
[&](double _) { Q_UNUSED(_); settings_pane->clearSpeedingViolations(); });
connect(settings_pane, &SettingsPane::speedLimitChanged,
dc, &DroneController::computeSpeedingViolations);
+ dc->computeSpeedingViolations(settings_pane->getSpeedLimit());
connect(settings_pane, &SettingsPane::toggledTrajectories,
dc, &DroneController::setDrawTrajectories);