aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-04-19 15:07:14 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-04-19 15:07:14 +0200
commit27c72935f8a17761e9b18a74643e014cad3587d1 (patch)
tree9e1779ba022dd6a78e90916389a8f349a9b903a7 /launcher/ui/pages/instance
parentfd7745cbebf55f5bcfccc16500fff0e67a789169 (diff)
downloadPrismLauncher-27c72935f8a17761e9b18a74643e014cad3587d1.tar.gz
PrismLauncher-27c72935f8a17761e9b18a74643e014cad3587d1.tar.bz2
PrismLauncher-27c72935f8a17761e9b18a74643e014cad3587d1.zip
fix: use size in bytes to sort by world size
Diffstat (limited to 'launcher/ui/pages/instance')
-rw-r--r--launcher/ui/pages/instance/WorldListPage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/pages/instance/WorldListPage.cpp b/launcher/ui/pages/instance/WorldListPage.cpp
index 650583a2..76725539 100644
--- a/launcher/ui/pages/instance/WorldListPage.cpp
+++ b/launcher/ui/pages/instance/WorldListPage.cpp
@@ -45,6 +45,7 @@
#include <QTreeView>
#include <QInputDialog>
#include <QProcess>
+#include <Qt>
#include "tools/MCEditTool.h"
#include "FileSystem.h"
@@ -92,6 +93,7 @@ WorldListPage::WorldListPage(BaseInstance *inst, std::shared_ptr<WorldList> worl
WorldListProxyModel * proxy = new WorldListProxyModel(this);
proxy->setSortCaseSensitivity(Qt::CaseInsensitive);
proxy->setSourceModel(m_worlds.get());
+ proxy->setSortRole(Qt::UserRole);
ui->worldTreeView->setSortingEnabled(true);
ui->worldTreeView->setModel(proxy);
ui->worldTreeView->installEventFilter(this);