aboutsummaryrefslogtreecommitdiff
path: root/src/lib/bookmarks/xbel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/bookmarks/xbel.cpp')
-rw-r--r--src/lib/bookmarks/xbel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/bookmarks/xbel.cpp b/src/lib/bookmarks/xbel.cpp
index 8a5d857..24bdf5e 100644
--- a/src/lib/bookmarks/xbel.cpp
+++ b/src/lib/bookmarks/xbel.cpp
@@ -31,7 +31,6 @@ bool Xbel::read(const QString &xbel)
QFile file(xbel);
if(!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
// file cannot be opened
- qDebug("Cannot open xbel: %s", qUtf8Printable(xbel));
return false;
}
@@ -77,6 +76,9 @@ bool Xbel::write(const QString &xbel)
}
xmlWriter.writeEndDocument();
+
+ file.flush();
+ file.close();
return true;
}