From: Steinar H. Gunderson Date: Sun, 24 Apr 2016 22:17:17 +0000 (+0200) Subject: Make SIGUSR1 actually quit, not just stop the mixer. X-Git-Tag: 1.3.0~52 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=52f160780ff4462dcb23bc4cf4fec76ead511e64;p=nageru Make SIGUSR1 actually quit, not just stop the mixer. --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 5adae5c..2d2f52e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -32,6 +32,8 @@ using namespace std::placeholders; Q_DECLARE_METATYPE(std::vector); +MainWindow *global_mainwindow = nullptr; + namespace { void schedule_cut_signal(int ignored) @@ -41,13 +43,11 @@ void schedule_cut_signal(int ignored) void quit_signal(int ignored) { - global_mixer->quit(); + global_mainwindow->close(); } } // namespace -MainWindow *global_mainwindow = nullptr; - MainWindow::MainWindow() : ui(new Ui::MainWindow) {