diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b9085c2..1fc9da8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -38,3 +38,5 @@ void MainWindow::fullScreenRequested( fullScreenRequest.accept(); fullScreenRequest.toggleOn() ? showFullScreen() : showNormal(); } + +void MainWindow::closeEvent(QCloseEvent *event) { QApplication::quit(); } diff --git a/src/mainwindow.h b/src/mainwindow.h index c7274d3..617cb7d 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -21,6 +21,7 @@ private: QWebEngineView *m_webView; QWebEngineProfile *prepareProfile(); DiscordPage *m_discordPage; + void closeEvent(QCloseEvent *event) override; private Q_SLOTS: void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest);