mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Warn closing modified file on non-project session.
This commit is contained in:
@@ -54,7 +54,8 @@ void appLoop() {
|
||||
}
|
||||
|
||||
bool App::onCloseRequestCallback( EE::Window::Window* ) {
|
||||
if ( mSplitter->isAnyEditorDirty() && !mConfig.workspace.sessionSnapshot ) {
|
||||
if ( mSplitter->isAnyEditorDirty() &&
|
||||
( !mConfig.workspace.sessionSnapshot || mCurrentProject.empty() ) ) {
|
||||
if ( mCloseMsgBox )
|
||||
return false;
|
||||
mCloseMsgBox = UIMessageBox::New(
|
||||
|
||||
Reference in New Issue
Block a user