]> git.sur5r.net Git - fstl/commitdiff
Connect to correct slots
authorMatt Keeter <matt.j.keeter@gmail.com>
Thu, 13 Mar 2014 12:48:16 +0000 (05:48 -0700)
committerMatt Keeter <matt.j.keeter@gmail.com>
Thu, 13 Mar 2014 12:48:16 +0000 (05:48 -0700)
src/window.cpp

index ebb4b70020731c0f5efdb6f524ebb21d63861738..13d3583b3a58121133ce625cd526282991c3e4e9 100644 (file)
@@ -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);