summaryrefslogtreecommitdiff
path: root/examples/xml/streambookmarks/xbelreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xml/streambookmarks/xbelreader.cpp')
-rw-r--r--examples/xml/streambookmarks/xbelreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xml/streambookmarks/xbelreader.cpp b/examples/xml/streambookmarks/xbelreader.cpp
index 099985d91e..bd187038bc 100644
--- a/examples/xml/streambookmarks/xbelreader.cpp
+++ b/examples/xml/streambookmarks/xbelreader.cpp
@@ -140,7 +140,7 @@ void XbelReader::readFolder(QTreeWidgetItem *item)
QTreeWidgetItem *folder = createChildItem(item);
bool folded = (xml.attributes().value(foldedAttribute()) != QLatin1String("no"));
- treeWidget->setItemExpanded(folder, !folded);
+ folder->setExpanded(!folded);
while (xml.readNextStartElement()) {
if (xml.name() == QLatin1String("title"))