mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #228 from kiwix/fix-crash-suggestion
Fix crash searchbar's suggestions
This commit is contained in:
commit
cfdd634c3c
|
@ -772,6 +772,9 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
|
|||
for (auto current = suggestionSearch->begin();
|
||||
current != suggestionSearch->end();
|
||||
current++) {
|
||||
if (!current->good()) {
|
||||
continue;
|
||||
}
|
||||
std::vector<std::string> suggestion;
|
||||
suggestion.push_back(current->getTitle());
|
||||
suggestion.push_back("/A/" + current->getUrl());
|
||||
|
|
Loading…
Reference in New Issue