diff -r 6d2b32f305f9 -r 382a444f5b0c xml-vym.cpp --- a/xml-vym.cpp Wed May 13 08:26:27 2009 +0000 +++ b/xml-vym.cpp Thu May 14 12:42:58 2009 +0000 @@ -282,8 +282,15 @@ case StateMap: mainWindow->removeProgressBar(); break; + case StateMapCenter: + model->selectParent(); + model->emitDataHasChanged (lastBranchItem); + lastBranchItem=model->getSelectedBranchItem(); + lastBranchItem->setLastSelectedBranch (0); // Reset last selected to first child branch + break; case StateBranch: model->selectParent(); + model->emitDataHasChanged (lastBranchItem); lastBranchItem=model->getSelectedBranchItem(); lastBranchItem->setLastSelectedBranch (0); // Reset last selected to first child branch break; @@ -434,17 +441,18 @@ return false; // Couldn't read absPos } } - /* FIXME-2 - if (!a.value( "id").isEmpty() ) - lastBranchItem->setID (a.value ("id")); + //if (!a.value( "id").isEmpty() ) + // lastBranchItem->setID (a.value ("id")); + if (!a.value( "url").isEmpty() ) - lastOO->setURL (a.value ("url")); + lastBranchItem->setURL (a.value ("url")); if (!a.value( "vymLink").isEmpty() ) - lastOO->setVymLink (a.value ("vymLink")); + lastBranchItem->setVymLink (a.value ("vymLink")); if (!a.value( "hideInExport").isEmpty() ) if (a.value("hideInExport")=="true") - lastOO->getTreeItem()->setHideInExport(true); + lastBranchItem->setHideInExport(true); + /* FIXME-2 if (!a.value( "hideLink").isEmpty()) { if (a.value ("hideLink") =="true")