diff options
| author | 2020-04-25 15:01:20 -0300 | |
|---|---|---|
| committer | 2020-04-25 15:01:20 -0300 | |
| commit | dffcff9fec215e076e35545c4de46240e2550392 (patch) | |
| tree | 2c94d7cbfce0c451f4e296374bd051bb5af03b4f /src | |
| parent | Merge pull request #3721 from ReinUsesLisp/sort-devices (diff) | |
| download | yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.gz yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.xz yuzu-dffcff9fec215e076e35545c4de46240e2550392.zip | |
Fix the mistake in the port and update the comment for clarity
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list_p.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index 3e6d5a7cd..0cd0054c8 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h | |||
| @@ -126,13 +126,6 @@ public: | |||
| 126 | 126 | ||
| 127 | return GameListItem::data(role); | 127 | return GameListItem::data(role); |
| 128 | } | 128 | } |
| 129 | |||
| 130 | /** | ||
| 131 | * Override to prevent automatic sorting. | ||
| 132 | */ | ||
| 133 | bool operator<(const QStandardItem& other) const override { | ||
| 134 | return false; | ||
| 135 | } | ||
| 136 | }; | 129 | }; |
| 137 | 130 | ||
| 138 | class GameListItemCompat : public GameListItem { | 131 | class GameListItemCompat : public GameListItem { |
| @@ -279,6 +272,13 @@ public: | |||
| 279 | return static_cast<int>(dir_type); | 272 | return static_cast<int>(dir_type); |
| 280 | } | 273 | } |
| 281 | 274 | ||
| 275 | /** | ||
| 276 | * Override to prevent automatic sorting between folders and the addDir button. | ||
| 277 | */ | ||
| 278 | bool operator<(const QStandardItem& other) const override { | ||
| 279 | return false; | ||
| 280 | } | ||
| 281 | |||
| 282 | private: | 282 | private: |
| 283 | GameListItemType dir_type; | 283 | GameListItemType dir_type; |
| 284 | }; | 284 | }; |