diff options
| author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-19 00:06:44 +0300 |
|---|---|---|
| committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-19 00:06:44 +0300 |
| commit | 319ce8c19f801a4bec920c6778cf140e9f92ee32 (patch) | |
| tree | 6322b81bf4146ba98b5894ebbb8201a37cc8c044 /launcher/java | |
| parent | 182e19eae3e2aa9f50dde140d10db858b5bf6076 (diff) | |
| parent | 12cd8a7bea991c2a8d4b59b1cfc9f7c246819fc9 (diff) | |
| download | PrismLauncher-319ce8c19f801a4bec920c6778cf140e9f92ee32.tar.gz PrismLauncher-319ce8c19f801a4bec920c6778cf140e9f92ee32.tar.bz2 PrismLauncher-319ce8c19f801a4bec920c6778cf140e9f92ee32.zip | |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into develop
Diffstat (limited to 'launcher/java')
| -rw-r--r-- | launcher/java/JavaInstallList.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/java/JavaInstallList.cpp b/launcher/java/JavaInstallList.cpp index b29af857..3407fdf7 100644 --- a/launcher/java/JavaInstallList.cpp +++ b/launcher/java/JavaInstallList.cpp @@ -1,7 +1,8 @@ // SPDX-License-Identifier: GPL-3.0-only /* - * PolyMC - Minecraft Launcher + * Prism Launcher - Minecraft Launcher * Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net> + * Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -98,6 +99,8 @@ QVariant JavaInstallList::data(const QModelIndex &index, int role) const auto version = std::dynamic_pointer_cast<JavaInstall>(m_vlist[index.row()]); switch (role) { + case SortRole: + return -index.row(); case VersionPointerRole: return QVariant::fromValue(m_vlist[index.row()]); case VersionIdRole: |
