aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/bookmarkmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bookmarks/bookmarkmodel.cpp')
-rw-r--r--lib/bookmarks/bookmarkmodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bookmarks/bookmarkmodel.cpp b/lib/bookmarks/bookmarkmodel.cpp
index 8599f1d..0775ff2 100644
--- a/lib/bookmarks/bookmarkmodel.cpp
+++ b/lib/bookmarks/bookmarkmodel.cpp
@@ -241,10 +241,11 @@ inline QStringList searchThrough(const QString &term, const QStringList &tags, B
if(has(tags, child->data(BookmarkItem::Tags).toStringList())) {
// append all bookmarks
- for(int i = 0; i < child->childCount(); ++i) {
- auto *subChild = child->child(i);
- if(subChild->type() == BookmarkItem::Bookmark)
+ for(int j = 0; j < child->childCount(); ++j) {
+ auto *subChild = child->child(j);
+ if(subChild->type() == BookmarkItem::Bookmark) {
results.append(subChild->data(BookmarkItem::Href).toString());
+ }
}
}
results.append(searchThrough(term, tags, child));