Explorar el Código

CDB: Fix crash on cell selection > change table > ctrl c

lviguier hace 2 meses
padre
commit
1628ad95a9
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      hide/comp/cdb/Editor.hx

+ 2 - 4
hide/comp/cdb/Editor.hx

@@ -176,10 +176,8 @@ class Editor extends Component {
 		keys.register("cdb.globalSeekIds", () -> new GlobalSeek(cdbTable.element, cdbTable, GlobalIds, currentSheet));
 
 		base = sheet.base;
-		if( cursor == null )
-			cursor = new Cursor(this);
-		// else if ( !tables.contains(cursor.table) ) //TODO(lv): needed ?
-		// 	cursor.set();
+		cursor = new Cursor(this);
+
 		if( displayMode == null ) displayMode = Table;
 		DataFiles.load();
 		if( currentValue == null ) currentValue = api.copy();