mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-25 04:55:39 +00:00
Fix the mistake in the port and update the comment for clarity
This commit is contained in:
parent
c5bf693882
commit
dffcff9fec
|
@ -126,13 +126,6 @@ public:
|
||||||
|
|
||||||
return GameListItem::data(role);
|
return GameListItem::data(role);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Override to prevent automatic sorting.
|
|
||||||
*/
|
|
||||||
bool operator<(const QStandardItem& other) const override {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class GameListItemCompat : public GameListItem {
|
class GameListItemCompat : public GameListItem {
|
||||||
|
@ -279,6 +272,13 @@ public:
|
||||||
return static_cast<int>(dir_type);
|
return static_cast<int>(dir_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override to prevent automatic sorting between folders and the addDir button.
|
||||||
|
*/
|
||||||
|
bool operator<(const QStandardItem& other) const override {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GameListItemType dir_type;
|
GameListItemType dir_type;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue