diff options
author | bunnei <bunneidev@gmail.com> | 2016-02-26 08:36:33 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-26 08:36:33 -0500 |
commit | c28a48aa023b1617dfc94897d677f4f731f66db8 (patch) | |
tree | 86fb29d472d9b94e73d25ccedde01d658e47237d /src/citra_qt/main.h | |
parent | 2b00bdec1f83be82acb65bb316086858134e5766 (diff) | |
parent | 973a6c40dae76b4a03af3e481a31cedfb3011115 (diff) |
Merge pull request #1352 from LittleWhite-tb/exit_check
Add check before closure when emulation is running
Diffstat (limited to 'src/citra_qt/main.h')
-rw-r--r-- | src/citra_qt/main.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h index f6d429cd9..8c195f816 100644 --- a/src/citra_qt/main.h +++ b/src/citra_qt/main.h @@ -82,6 +82,13 @@ private: */ void UpdateRecentFiles(); + /** + * If the emulation is running, + * asks the user if he really want to close the emulator + * + * @return true if the user confirmed + */ + bool ConfirmClose(); void closeEvent(QCloseEvent* event) override; private slots: @@ -122,6 +129,7 @@ private: GPUCommandListWidget* graphicsCommandsWidget; QAction* actions_recent_files[max_recent_files_item]; + bool confirm_before_closing; }; #endif // _CITRA_QT_MAIN_HXX_ |