Changeset View
Changeset View
Standalone View
Standalone View
runners/bookmarks/browsers/firefox.cpp
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 103 | for(const QVariantMap &result : results) { | |||
---|---|---|---|---|---|
132 | } | 132 | } | ||
133 | if (it == keyRange.second) { | 133 | if (it == keyRange.second) { | ||
134 | // first or unique entry | 134 | // first or unique entry | ||
135 | uniqueResults.insert(urlString, title); | 135 | uniqueResults.insert(urlString, title); | ||
136 | } | 136 | } | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | for (auto result = uniqueResults.constKeyValueBegin(); result != uniqueResults.constKeyValueEnd(); ++result) { | 139 | for (auto result = uniqueResults.constKeyValueBegin(); result != uniqueResults.constKeyValueEnd(); ++result) { | ||
140 | BookmarkMatch bookmarkMatch(m_favicon, term, (*result).second, (*result).first); | 140 | const QString url = (*result).first; | ||
141 | BookmarkMatch bookmarkMatch(m_favicon->iconFor(url), term, (*result).second, url); | ||||
141 | bookmarkMatch.addTo(matches, addEverything); | 142 | bookmarkMatch.addTo(matches, addEverything); | ||
142 | } | 143 | } | ||
143 | 144 | | |||
144 | return matches; | 145 | return matches; | ||
145 | } | 146 | } | ||
146 | 147 | | |||
147 | 148 | | |||
148 | void Firefox::teardown() | 149 | void Firefox::teardown() | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |