Explorar o código

CDB: fix deletion on subtables not working

lviguier hai 6 meses
pai
achega
30cf6158b6
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      hide/comp/cdb/Editor.hx

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

@@ -854,8 +854,13 @@ class Editor extends Component {
 
 		endChanges();
 		cursor.table.getRealSheet().sync();
-		for (t in modifiedTables)
-			t.refresh();
+		for (t in modifiedTables) {
+			var toRefresh = t;
+			while(toRefresh != null) {
+				toRefresh.refresh();
+				toRefresh = toRefresh.parent;
+			}
+		}
 		updateFilter();
 	}