diff -r c2ce9944148c -r 0bba81dde1bc treeitem.cpp --- a/treeitem.cpp Wed Feb 10 13:48:42 2010 +0000 +++ b/treeitem.cpp Fri Feb 19 13:47:03 2010 +0000 @@ -52,7 +52,7 @@ { model=NULL; - // Reset ID //FIXME-2 compare objID (string), so far only used for xLinks during load/save (Id=selString) + // Assign ID idLast++; id=idLast; @@ -342,9 +342,26 @@ { url=u; if (!url.isEmpty()) - systemFlags.activate ("system-url"); + { + if (url.contains ("bugzilla.novell.com")) + { + systemFlags.activate ("system-url-bugzilla-novell"); + if (systemFlags.isActive ("system-url")) + systemFlags.deactivate ("system-url"); + } else + { + systemFlags.activate ("system-url"); + if (systemFlags.isActive ("system-url-bugzilla-novell")) + systemFlags.deactivate ("system-url-bugzilla-novell"); + } + } else - systemFlags.deactivate ("system-url"); + { + if (systemFlags.isActive ("system-url")) + systemFlags.deactivate ("system-url"); + if (systemFlags.isActive ("system-url-bugzilla-novell")) + systemFlags.deactivate ("system-url-bugzilla-novell"); + } } QString TreeItem::getURL () @@ -520,14 +537,10 @@ TreeItem* TreeItem::findID (const uint &n) { - if (n>=0 && nid) - return childItems.at(n); - } - else - return NULL; + for (int i=0;iid) + return childItems.at(n); + return NULL; } @@ -635,14 +648,14 @@ } -void TreeItem::setHideTmp (HideTmpMode mode) //FIXME-2 update visibility in derived objects +void TreeItem::setHideTmp (HideTmpMode mode) //FIXME-3 update visibility in derived objects { if (type==Image || type==Branch || type==MapCenter) // ((ImageItem*)this)->updateVisibility(); { LinkableMapObj* lmo=((MapItem*)this)->getLMO(); - if (mode==HideExport && (hideExport || hasHiddenExportParent() ) ) // FIXME-2 try to avoid calling hasScrolledParent repeatedly + if (mode==HideExport && (hideExport || hasHiddenExportParent() ) ) // FIXME-3 try to avoid calling hasScrolledParent repeatedly { // Hide stuff according to hideExport flag and parents