Prechádzať zdrojové kódy

bugfix cancel on choose tile file

Nicolas Cannasse 6 rokov pred
rodič
commit
6a90ce2434
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  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();