Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(search): application crash when starting a search
Browse files Browse the repository at this point in the history
  • Loading branch information
bodwok committed Jul 2, 2019
1 parent e7e6bff commit 77d55d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/model/sessionchatlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ SearchResult SessionChatLog::searchBackward(SearchPos startPos, const QString& p

// If we don't have it we'll start at the end
if (startIt == items.end()) {
if (items.empty()) {
SearchResult ret;
ret.found = false;
return ret;
}
startIt = std::prev(items.end());
startPos.numMatches = 0;
}
Expand Down

0 comments on commit 77d55d5

Please sign in to comment.