Update size order for folders
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
242ddbb7e1
commit
29d32f0d9a
9 changed files with 15 additions and 19 deletions
|
@ -78,11 +78,11 @@ void Mod::setDetails(const ModDetails& details)
|
|||
m_local_details = details;
|
||||
}
|
||||
|
||||
int Mod::compare(const Resource& other, SortType type, Qt::SortOrder order) const
|
||||
int Mod::compare(const Resource& other, SortType type) const
|
||||
{
|
||||
auto cast_other = dynamic_cast<Mod const*>(&other);
|
||||
if (!cast_other)
|
||||
return Resource::compare(other, type, order);
|
||||
return Resource::compare(other, type);
|
||||
|
||||
switch (type) {
|
||||
default:
|
||||
|
@ -90,7 +90,7 @@ int Mod::compare(const Resource& other, SortType type, Qt::SortOrder order) cons
|
|||
case SortType::NAME:
|
||||
case SortType::DATE:
|
||||
case SortType::SIZE:
|
||||
return Resource::compare(other, type, order);
|
||||
return Resource::compare(other, type);
|
||||
case SortType::VERSION: {
|
||||
auto this_ver = Version(version());
|
||||
auto other_ver = Version(cast_other->version());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue