1.1 --- a/xml-vym.cpp Wed May 13 08:26:27 2009 +0000
1.2 +++ b/xml-vym.cpp Thu May 14 12:42:58 2009 +0000
1.3 @@ -282,8 +282,15 @@
1.4 case StateMap:
1.5 mainWindow->removeProgressBar();
1.6 break;
1.7 + case StateMapCenter:
1.8 + model->selectParent();
1.9 + model->emitDataHasChanged (lastBranchItem);
1.10 + lastBranchItem=model->getSelectedBranchItem();
1.11 + lastBranchItem->setLastSelectedBranch (0); // Reset last selected to first child branch
1.12 + break;
1.13 case StateBranch:
1.14 model->selectParent();
1.15 + model->emitDataHasChanged (lastBranchItem);
1.16 lastBranchItem=model->getSelectedBranchItem();
1.17 lastBranchItem->setLastSelectedBranch (0); // Reset last selected to first child branch
1.18 break;
1.19 @@ -434,17 +441,18 @@
1.20 return false; // Couldn't read absPos
1.21 }
1.22 }
1.23 - /* FIXME-2
1.24 - if (!a.value( "id").isEmpty() )
1.25 - lastBranchItem->setID (a.value ("id"));
1.26 + //if (!a.value( "id").isEmpty() )
1.27 + // lastBranchItem->setID (a.value ("id"));
1.28 +
1.29 if (!a.value( "url").isEmpty() )
1.30 - lastOO->setURL (a.value ("url"));
1.31 + lastBranchItem->setURL (a.value ("url"));
1.32 if (!a.value( "vymLink").isEmpty() )
1.33 - lastOO->setVymLink (a.value ("vymLink"));
1.34 + lastBranchItem->setVymLink (a.value ("vymLink"));
1.35 if (!a.value( "hideInExport").isEmpty() )
1.36 if (a.value("hideInExport")=="true")
1.37 - lastOO->getTreeItem()->setHideInExport(true);
1.38 + lastBranchItem->setHideInExport(true);
1.39
1.40 + /* FIXME-2
1.41 if (!a.value( "hideLink").isEmpty())
1.42 {
1.43 if (a.value ("hideLink") =="true")