summaryrefslogtreecommitdiffstats
path: root/examples/xml/streambookmarks/xbelwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xml/streambookmarks/xbelwriter.cpp')
-rw-r--r--examples/xml/streambookmarks/xbelwriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xml/streambookmarks/xbelwriter.cpp b/examples/xml/streambookmarks/xbelwriter.cpp
index 2959680678..7cc16494e2 100644
--- a/examples/xml/streambookmarks/xbelwriter.cpp
+++ b/examples/xml/streambookmarks/xbelwriter.cpp
@@ -87,7 +87,7 @@ void XbelWriter::writeItem(const QTreeWidgetItem *item)
{
QString tagName = item->data(0, Qt::UserRole).toString();
if (tagName == QLatin1String("folder")) {
- bool folded = !treeWidget->isItemExpanded(item);
+ bool folded = !item->isExpanded();
xml.writeStartElement(tagName);
xml.writeAttribute(XbelReader::foldedAttribute(), folded ? yesValue() : noValue());
xml.writeTextElement(titleElement(), item->text(0));