diff options
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: | |||
| 82 | */ | 82 | */ |
| 83 | void UpdateRecentFiles(); | 83 | void UpdateRecentFiles(); |
| 84 | 84 | ||
| 85 | /** | ||
| 86 | * If the emulation is running, | ||
| 87 | * asks the user if he really want to close the emulator | ||
| 88 | * | ||
| 89 | * @return true if the user confirmed | ||
| 90 | */ | ||
| 91 | bool ConfirmClose(); | ||
| 85 | void closeEvent(QCloseEvent* event) override; | 92 | void closeEvent(QCloseEvent* event) override; |
| 86 | 93 | ||
| 87 | private slots: | 94 | private slots: |
| @@ -122,6 +129,7 @@ private: | |||
| 122 | GPUCommandListWidget* graphicsCommandsWidget; | 129 | GPUCommandListWidget* graphicsCommandsWidget; |
| 123 | 130 | ||
| 124 | QAction* actions_recent_files[max_recent_files_item]; | 131 | QAction* actions_recent_files[max_recent_files_item]; |
| 132 | bool confirm_before_closing; | ||
| 125 | }; | 133 | }; |
| 126 | 134 | ||
| 127 | #endif // _CITRA_QT_MAIN_HXX_ | 135 | #endif // _CITRA_QT_MAIN_HXX_ |