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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_window.cc b/src/main_window.cc
index 1e9f054..9b4dff0 100644
--- a/src/main_window.cc
+++ b/src/main_window.cc
@@ -77,11 +77,11 @@ void MainWindow::open(const QString &path) {
connect(slider, &QSlider::sliderReleased, dc, &DroneController::resume);
connect(slider, &QSlider::valueChanged, dc, &DroneController::seek);
connect(dc, &DroneController::frameChanged, slider, &QSlider::setValue);
- connect(settings_pane, &SettingsPane::collisionClicked,
- slider, &QSlider::setValue);
slider->setEnabled(true);
// Settings pane
+ connect(settings_pane, &SettingsPane::collisionClicked,
+ slider, &QSlider::setValue);
connect(dc, &DroneController::collision, settings_pane, &SettingsPane::addCollision);
connect(settings_pane, &SettingsPane::sphereRadiusChanged,
[&](double _) { settings_pane->clearCollisions(); });