diff -r f076fdec767d -r 338ebdc9b947 vymmodel.cpp --- a/vymmodel.cpp Fri Oct 02 13:24:55 2009 +0000 +++ b/vymmodel.cpp Fri Oct 02 14:31:03 2009 +0000 @@ -2167,13 +2167,13 @@ // Create TreeItem QList cData; - cData << "new" << "undef"; + cData << "" << "undef"; BranchItem *parbi; QModelIndex parix; int n; BranchItem *newbi=new BranchItem (cData); - newbi->setHeading (QApplication::translate("Heading of new branch in map", "new")); + //newbi->setHeading (QApplication::translate("Heading of new branch in map", "new")); emit (layoutAboutToBeChanged() ); @@ -2198,6 +2198,9 @@ } emit (layoutChanged() ); + // Set color of heading to that of parent + newbi->setHeadingColor (parbi->getHeadingColor()); + // save scroll state. If scrolled, automatically select // new branch in order to tmp unscroll parent... newbi->createMapObj(mapScene); @@ -2774,8 +2777,10 @@ TreeItem *selti=getSelectedItem(); if (selti) { - QString url= "https://bugzilla.novell.com/show_bug.cgi?id="+selti->getHeading(); - setURL (url); + QString h=selti->getHeading(); + QRegExp rx("^(\\d+)"); + if (rx.indexIn(h) !=-1) + setURL ("https://bugzilla.novell.com/show_bug.cgi?id="+rx.cap(1) ); } }