mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +00:00
DolphinQt: Properly handle quit events.
* Confirm stopping emulation when the window is closing, not just the "Stop" button * Don't resume if we were already paused when we got the quit event * Shutdown the core at the end of main() so we don't crash on exit * Miscellaneous other logic cleanups related to this
This commit is contained in:
parent
436f1133dd
commit
831d8ef13f
4 changed files with 23 additions and 19 deletions
|
@ -19,10 +19,7 @@ protected:
|
|||
void mousePressEvent(QMouseEvent*) override {}
|
||||
void paintEvent(QPaintEvent*) override {}
|
||||
|
||||
private slots:
|
||||
private:
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
|
||||
signals:
|
||||
void Closed();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue