diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-24 17:16:23 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-24 17:16:23 +0100 |
commit | 426151664c6d81a1db0b95bb61a6e30feb2c9df3 (patch) | |
tree | d759d7dd0302d45bd0beb827e0e9d5a011ad246c /src/lib/bookmarks/xbel.cpp | |
parent | Request filter now properly takes hostlists (diff) | |
download | smolbote-426151664c6d81a1db0b95bb61a6e30feb2c9df3.tar.xz |
Address bar menu now reads entries from the bookmarks
Diffstat (limited to 'src/lib/bookmarks/xbel.cpp')
-rw-r--r-- | src/lib/bookmarks/xbel.cpp | 4 |
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; } |