diff -r 1e51ba080947 -r 700553af9ca5 mapeditor.cpp --- a/mapeditor.cpp Tue Jan 15 13:06:59 2008 +0000 +++ b/mapeditor.cpp Tue Jan 15 13:06:59 2008 +0000 @@ -2685,18 +2685,13 @@ bool MapEditor::select (const QString &s) { - LinkableMapObj *lmo=model->findObjBySelect(s); - - // Finally select the found object - if (lmo) + if (xelection.select(s)) { - xelection.unselect(); - xelection.select(lmo); xelection.update(); ensureSelectionVisible(); sendSelection (); return true; - } + } return false; } @@ -4258,9 +4253,8 @@ void MapEditor::testFunction2() { - cout << "Selection (org): "<getSelectString(xelection.getBranch()).ascii()<addMapCenter(); + xelection.select (model->addMapCenter()); + ensureSelectionVisible(); /* // Toggle hidemode @@ -4269,14 +4263,6 @@ else setHideTmpMode (HideExport); */ -/* - LinkableMapObj *lmo=xelection.getBranch(); - if (lmo) - { - cout << "LMO::id="<getID().ascii()<