Browse Source

Fix sorting of country flags column in Peers tab.

adaptive-webui-19844
sledgehammer999 7 years ago
parent
commit
5156399c68
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 12
      src/gui/properties/peerlistsortmodel.h

12
src/gui/properties/peerlistsortmodel.h

@ -53,17 +53,11 @@ protected:
const QString strL = left.data().toString(); const QString strL = left.data().toString();
const QString strR = right.data().toString(); const QString strR = right.data().toString();
const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive); const int result = Utils::String::naturalCompare(strL, strR, Qt::CaseInsensitive);
if (result != 0) return (result < 0);
return (result < 0); }
return (left < right);
}
break; break;
default: default:
if (left.data() != right.data()) return QSortFilterProxyModel::lessThan(left, right);
return QSortFilterProxyModel::lessThan(left, right);
return (left < right);
}; };
} }
}; };

Loading…
Cancel
Save