[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sun Nov 18 17:07:50 CET 2007


SVN commit 738313 by harris:

Another fix for the detail dialog (Advanced tab): don't attempt to
open a database resource unless the QTreeItem has no children.

CCMAIL: kstars-devel at kde.org



 M  +2 -1      detaildialog.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/detaildialog.cpp #738312:738313
@@ -725,7 +725,8 @@
     QString link;
     QTreeWidgetItem * current = Adv->ADVTree->currentItem();
 
-    if (!current)  return;
+    //If the item has children or is invalid, do nothing
+    if ( !current || current->childCount()>0 )  return;
 
     foreach (ADVTreeData *item, ksw->data()->ADVtreeList)
     {


More information about the Kstars-devel mailing list