浏览代码

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 ) {
 				ide.chooseImage(function(path) {
+					if( path == null ) {
+						closeEdit();
+						return;
+					}
 					file = path;
 					setVal();
 					closeEdit();