Add check before closure when emulation is running

Implement confirmation in a specific function
Fix typos and coding style

Coding convention
This commit is contained in:
LittleWhite 2016-01-10 13:31:20 +01:00
parent 7497675a83
commit c2b210f713
2 changed files with 25 additions and 0 deletions

View file

@ -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: