Commit 36464f68 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 383008 - Quicksearch disregards drop-down settings

FIXED-IN: 5.6.0
BUG: 383008
parent a2709e9a
......@@ -60,12 +60,13 @@ bool Filter::match(const MessageItem *item) const
if (mMatchingItemIds.contains(item->itemId())) {
return true;
}
bool searchMatches = false;
if (containString(item->subject())) {
if (containString(item->subject()) && ((mOptions & QuickSearchLine::SearchAgainstSubject) || (mOptions & QuickSearchLine::SearchEveryWhere))) {
searchMatches = true;
} else if (containString(item->sender())) {
} else if (containString(item->sender()) && ((mOptions & QuickSearchLine::SearchAgainstFrom)|| (mOptions & QuickSearchLine::SearchEveryWhere))) {
searchMatches = true;
} else if (containString(item->receiver())) {
} else if (containString(item->receiver()) && ((mOptions & QuickSearchLine::SearchAgainstTo) || (mOptions & QuickSearchLine::SearchEveryWhere))) {
searchMatches = true;
}
if (!searchMatches) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment