ensure application is closed when window is closed
This commit is contained in:
parent
fa83e2d9a8
commit
cfbb4152c3
|
@ -38,3 +38,5 @@ void MainWindow::fullScreenRequested(
|
||||||
fullScreenRequest.accept();
|
fullScreenRequest.accept();
|
||||||
fullScreenRequest.toggleOn() ? showFullScreen() : showNormal();
|
fullScreenRequest.toggleOn() ? showFullScreen() : showNormal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::closeEvent(QCloseEvent *event) { QApplication::quit(); }
|
||||||
|
|
|
@ -21,6 +21,7 @@ private:
|
||||||
QWebEngineView *m_webView;
|
QWebEngineView *m_webView;
|
||||||
QWebEngineProfile *prepareProfile();
|
QWebEngineProfile *prepareProfile();
|
||||||
DiscordPage *m_discordPage;
|
DiscordPage *m_discordPage;
|
||||||
|
void closeEvent(QCloseEvent *event) override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest);
|
void fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest);
|
||||||
|
|
Loading…
Reference in New Issue