diff -r 65c5a0c28d20 -r 10bd509b235c mapeditor.cpp --- a/mapeditor.cpp Tue Jan 15 10:54:41 2008 +0000 +++ b/mapeditor.cpp Wed Jan 16 15:45:19 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()<