mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-21 16:20:53 +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)
|
static_cast<UIContext*>(context)
|
||||||
->setActiveDocument(oldActiveDocument);
|
->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...
|
// If params specify to ask the user about the name...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user