diff -r 008e72977ab8 -r edb78a44240b vymmodel.cpp --- a/vymmodel.cpp Thu Mar 26 07:50:32 2009 +0000 +++ b/vymmodel.cpp Tue Mar 31 15:36:10 2009 +0000 @@ -2227,31 +2227,43 @@ if (!ix.isValid() ) return; QModelIndex parentIndex=parent(ix); - if (!parentIndex.isValid()) return; +/* + if (!parentIndex.isValid()) + { + cout << "VM::delete no valid parent ix\n"; + return; + } +*/ TreeItem *ti=bo->getTreeItem(); - if (selectionType()==TreeItem::MapCenter) //FIXME-1 VM still missing + if (selectionType()==TreeItem::MapCenter) { // BranchObj* par=(BranchObj*)(bo->getParObj()); //selection.unselect(); /* FIXME-1 VM Note: does saveStateRemovingPart work for MCO? (No parent!) saveStateRemovingPart (bo, QString ("Delete %1").arg(getObjectName(bo))); - */ - /* + */ + emit (layoutAboutToBeChanged() ); + + parentIndex=parent(index(ti)); + cout << "VM::delete ti="<