diff options
author | ccolin | 2021-01-03 16:37:22 +0100 |
---|---|---|
committer | ccolin | 2021-01-03 16:50:22 +0100 |
commit | 14b5993f0f4bb4fc2d33394780e6d8911c8783d7 (patch) | |
tree | c30f3349f0bf23d7f7cf053e3bbd82b47f304719 /src/main_window.cc | |
parent | 0a6b133c19ccc69ecc6bcf6be83e8ec7f5f8150f (diff) |
fix rendering glitches
Diffstat (limited to 'src/main_window.cc')
-rw-r--r-- | src/main_window.cc | 4 |
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(); }); |