소스 검색

bugfix cancel on choose tile file

Nicolas Cannasse 6 년 전
부모
커밋
6a90ce2434
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      hide/comp/cdb/Cell.hx

+ 4 - 0
hide/comp/cdb/Cell.hx

@@ -455,6 +455,10 @@ class Cell extends Component {
 
 
 			if( file == null ) {
 			if( file == null ) {
 				ide.chooseImage(function(path) {
 				ide.chooseImage(function(path) {
+					if( path == null ) {
+						closeEdit();
+						return;
+					}
 					file = path;
 					file = path;
 					setVal();
 					setVal();
 					closeEdit();
 					closeEdit();