From d0933155e2dc179cde49b4306ff7feee9ca47697 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Fri, 3 Feb 2012 19:09:42 +0100 Subject: Replace setExpanded(const QSet&) by expandParentItems(const KUrl&) The use case of this function (Folders Panel) requires the expansion of the parent items of a single URL, so it's not needed to handle a full set of URLs in this function. Moreover, the issue that not only the parents, but also the URLs themselves were expanded is fixed by this commit. (cherry picked from commit 89082ca391807abdc26d8985efe6b4c27183a9b1) --- src/panels/folders/folderspanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/panels/folders/folderspanel.cpp') diff --git a/src/panels/folders/folderspanel.cpp b/src/panels/folders/folderspanel.cpp index 2511d7e4b..3b24f5868 100644 --- a/src/panels/folders/folderspanel.cpp +++ b/src/panels/folders/folderspanel.cpp @@ -330,7 +330,7 @@ void FoldersPanel::loadTree(const KUrl& url) updateCurrentItem(index); } else { m_updateCurrentItem = true; - model->setExpanded(QSet() << url); + model->expandParentItems(url); // slotLoadingCompleted() will be invoked after the model has // expanded the url } -- cgit v1.3