mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Qt: Prevent crash when closed by the window manager
This commit is contained in:
@ -92,6 +92,11 @@ DMainWindow::~DMainWindow()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DMainWindow::closeEvent(QCloseEvent* ce)
|
||||||
|
{
|
||||||
|
Stop();
|
||||||
|
}
|
||||||
|
|
||||||
// Emulation
|
// Emulation
|
||||||
|
|
||||||
void DMainWindow::StartGame(const QString filename)
|
void DMainWindow::StartGame(const QString filename)
|
||||||
|
@ -63,6 +63,7 @@ private slots:
|
|||||||
void UpdateIcons();
|
void UpdateIcons();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void closeEvent(QCloseEvent* ce);
|
||||||
std::unique_ptr<Ui::DMainWindow> m_ui;
|
std::unique_ptr<Ui::DMainWindow> m_ui;
|
||||||
DGameTracker* m_game_tracker;
|
DGameTracker* m_game_tracker;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user