ensure application is closed when window is closed
This commit is contained in:
parent
fa83e2d9a8
commit
cfbb4152c3
2 changed files with 3 additions and 0 deletions
|
@ -38,3 +38,5 @@ void MainWindow::fullScreenRequested(
|
|||
fullScreenRequest.accept();
|
||||
fullScreenRequest.toggleOn() ? showFullScreen() : showNormal();
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event) { QApplication::quit(); }
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue