mirror of https://github.com/aseprite/aseprite.git
				
				
				
			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…
	
		Reference in New Issue