From 81108c1b0fa8f710ff7417476c10c83e70ae7a15 Mon Sep 17 00:00:00 2001 From: ccolin Date: Mon, 4 Jan 2021 15:09:38 +0100 Subject: properly honor default values of sphere radius and speed limit --- src/main_window.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main_window.cc') 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); -- cgit v1.2.3-70-g09d2