mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Merge pull request #3795 from vitor-k/fix-folder
Fix "Port citra-emu/citra#4956: "Fixes to game list sorting" #3611"
This commit is contained in:
		
						commit
						378aed07e9
					
				@ -126,13 +126,6 @@ public:
 | 
			
		||||
 | 
			
		||||
        return GameListItem::data(role);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Override to prevent automatic sorting.
 | 
			
		||||
     */
 | 
			
		||||
    bool operator<(const QStandardItem& other) const override {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class GameListItemCompat : public GameListItem {
 | 
			
		||||
@ -279,6 +272,13 @@ public:
 | 
			
		||||
        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:
 | 
			
		||||
    GameListItemType dir_type;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user