]> git.sesse.net Git - nageru/commitdiff
Hook up the exit menu item.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Jan 2016 19:57:12 +0000 (20:57 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Jan 2016 19:57:12 +0000 (20:57 +0100)
bmusb
mainwindow.cpp
mainwindow.h

diff --git a/bmusb b/bmusb
index e7d3ce1cdb423c5ba33f098f97383f099055d621..4a275155fbd23690652c0478b12363d254f84e16 160000 (submodule)
--- a/bmusb
+++ b/bmusb
@@ -1 +1 @@
-Subproject commit e7d3ce1cdb423c5ba33f098f97383f099055d621
+Subproject commit 4a275155fbd23690652c0478b12363d254f84e16
index e23d191d978511589e1e3ab8ec146232812a8d81..b78751f4de2d933d514d74b5cbbd209b12311b89 100644 (file)
@@ -43,6 +43,7 @@ MainWindow::MainWindow()
 
        // The menu.
        connect(ui->cut_action, &QAction::triggered, this, &MainWindow::cut_triggered);
+       connect(ui->exit_action, &QAction::triggered, this, &MainWindow::exit_triggered);
 
        // Hook up the transition buttons.
        // TODO: Make them dynamic.
@@ -134,6 +135,11 @@ void MainWindow::cut_triggered()
        global_mixer->schedule_cut();
 }
 
+void MainWindow::exit_triggered()
+{
+       close();
+}
+
 void MainWindow::cutoff_knob_changed(int value)
 {
        float octaves = value * 0.1f;
index bb5a8707734433a0b79b4363e8a563033c1050d2..82309c4cbe99c51268d5ec71bef3b8a9d9e725b3 100644 (file)
@@ -33,6 +33,7 @@ public:
 
 public slots:
        void cut_triggered();
+       void exit_triggered();
        void transition_clicked(int transition_number);
        void channel_clicked(int channel_number);
        void wb_button_clicked(int channel_number);