diff --git a/editor/mainwindow.cpp b/editor/mainwindow.cpp index 8fd008b..2990cb1 100644 --- a/editor/mainwindow.cpp +++ b/editor/mainwindow.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -47,6 +48,10 @@ MainWindow::MainWindow(QWidget *parent) setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea); setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea); + connect(ui->actionQuit, &QAction::triggered, [&]() { + this->close(); + }); + // Logger Logger::addLogListener(std::bind(&MainWindow::handleLog, this, std::placeholders::_1, std::placeholders::_2)); diff --git a/editor/mainwindow.ui b/editor/mainwindow.ui index 8bef709..29e41f3 100644 --- a/editor/mainwindow.ui +++ b/editor/mainwindow.ui @@ -51,6 +51,8 @@ + + @@ -455,6 +457,17 @@ QAction::MenuRole::NoRole + + + + + + Exit Openblocks Editor + + + QAction::MenuRole::QuitRole + +