diff -r 96b0a867c0fa -r 32b71ba642aa mapeditor.cpp --- a/mapeditor.cpp Fri Jun 29 09:43:54 2007 +0000 +++ b/mapeditor.cpp Fri Jun 29 15:12:04 2007 +0000 @@ -775,7 +775,10 @@ // Get number in parent x=parser.parInt (ok,1); if (ok) + { selb->linkTo ((BranchObj*)(dst),x); + xelection.update(); + } } else if (typeid(*dst) == typeid(MapCenterObj) ) { selb->linkTo ((BranchObj*)(dst),-1); @@ -784,7 +787,11 @@ if (ok) { y=parser.parInt (ok,3); - if (ok) selb->move (x,y); + if (ok) + { + selb->move (x,y); + xelection.update(); + } } } } @@ -2450,11 +2457,9 @@ // so we have to pass on this information via saveState. // TODO: Get rid of this positioning workaround QString ps=qpointfToString (newbo->getAbsPos()); - saveState( - newbo, "move "+ps, - newbo, "move "+ps, - QString("Move %1 to %2").arg(getName(newbo)).arg(ps)); - + sendData ("selectLastBranch ()"); + sendData (QString("move %1").arg(ps)); + sendSelection(); xelection.update(); } } @@ -4090,7 +4095,6 @@ void MapEditor::testFunction1() { - newServer(); /* BranchObj *bo=xelection.getBranch(); @@ -4139,7 +4143,6 @@ void MapEditor::testFunction2() { - sendData("Foo"); } void MapEditor::contextMenuEvent ( QContextMenuEvent * e ) @@ -4800,8 +4803,7 @@ } connect(tcpServer, SIGNAL(newConnection()), this, SLOT(newClient())); netstate=Server; - if (debug) - cout<<"Server is running on port "<serverPort()<serverPort()<