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 5e58660..8acfefb 100644
--- a/src/main_window.cc
+++ b/src/main_window.cc
@@ -55,6 +55,8 @@ void MainWindow::open(const QString &path) {
if (dc) delete dc;
dc = new DroneController(json_doc.object());
playpause_action->setEnabled(true);
+ connect(dc, &DroneController::playing, this, &MainWindow::play);
+ connect(dc, &DroneController::pausing, this, &MainWindow::pause);
slider->setMinimum(0);
slider->setMaximum(dc->getDuration());
connect(slider, &QSlider::sliderPressed, dc, &DroneController::suspend);