From: Matt Keeter Date: Thu, 13 Mar 2014 12:48:16 +0000 (-0700) Subject: Connect to correct slots X-Git-Tag: v0.9.0~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=140de3f9291574a8f301234c2e781d84ee6c0f23;p=fstl Connect to correct slots --- diff --git a/src/window.cpp b/src/window.cpp index ebb4b70..13d3583 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -30,11 +30,11 @@ Window::Window(QWidget *parent) : quit_action = new QAction("Quit", this); quit_action->setShortcut(QKeySequence::Quit); QObject::connect(quit_action, &QAction::triggered, - this, &Window::on_open); + this, &Window::close); about_action = new QAction("About", this); QObject::connect(about_action, &QAction::triggered, - this, &Window::on_open); + this, &Window::on_about); auto file_menu = menuBar()->addMenu("File"); file_menu->addAction(open_action);