From 140de3f9291574a8f301234c2e781d84ee6c0f23 Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Thu, 13 Mar 2014 05:48:16 -0700 Subject: [PATCH] Connect to correct slots --- src/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5