Apply suggestion to smsapp/conversationssortfilterproxymodel.cpp
This commit is contained in:
parent
cd0259aba6
commit
d712b1067f
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ bool ConversationsSortFilterProxyModel::lessThan(const QModelIndex& leftIndex, c
|
||||||
const bool isLeftMultitarget = sourceModel()->data(leftIndex, ConversationListModel::MultitargetRole).toBool();
|
const bool isLeftMultitarget = sourceModel()->data(leftIndex, ConversationListModel::MultitargetRole).toBool();
|
||||||
const bool isRightMultitarget = sourceModel()->data(rightIndex, ConversationListModel::MultitargetRole).toBool();
|
const bool isRightMultitarget = sourceModel()->data(rightIndex, ConversationListModel::MultitargetRole).toBool();
|
||||||
if (isLeftMultitarget && !isRightMultitarget) {
|
if (isLeftMultitarget && !isRightMultitarget) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
if (!isLeftMultitarget && isRightMultitarget) {
|
if (!isLeftMultitarget && isRightMultitarget) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue