mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-19 19:21:08 +00:00
Don't add a reference layer if the user cancels the dialog
This commit is contained in:
parent
86e14fa2ff
commit
49d2cd14f0
@ -143,6 +143,10 @@ void NewLayerCommand::onExecute(Context* context)
|
||||
static_cast<UIContext*>(context)
|
||||
->setActiveDocument(oldActiveDocument);
|
||||
}
|
||||
// If the user didn't selected a new document, it means that the
|
||||
// file selector dialog was canceled.
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
// If params specify to ask the user about the name...
|
||||
|
Loading…
x
Reference in New Issue
Block a user