From kde-commits Thu Feb 28 23:32:55 2013 From: Albert Astals Cid Date: Thu, 28 Feb 2013 23:32:55 +0000 To: kde-commits Subject: [kde-workspace/KDE/4.10] kmenuedit: Another item -> childItem Message-Id: <20130228233255.B94AEA604F () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=136209439229792 Git commit 70a479c60591e475879c6f5d305370fa9a50b64f by Albert Astals Cid. Committed on 01/03/2013 at 00:32. Pushed by aacid into branch 'KDE/4.10'. Another item -> childItem Wops, sorry, this should be part of the previous commit too M +1 -1 kmenuedit/treeview.cpp http://commits.kde.org/kde-workspace/70a479c60591e475879c6f5d305370fa9a50b6= 4f diff --git a/kmenuedit/treeview.cpp b/kmenuedit/treeview.cpp index a6e968a..4dc7ed4 100644 --- a/kmenuedit/treeview.cpp +++ b/kmenuedit/treeview.cpp @@ -472,7 +472,7 @@ TreeItem *TreeView::expandPath(TreeItem *item, const QS= tring &path) if (folderInfo && (folderInfo->id =3D=3D subMenu)) { childItem->setExpanded(true); if (!restMenu.isEmpty()) { - return expandPath(item, restMenu); + return expandPath(childItem, restMenu); } else { return childItem; }