diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-21 09:14:58 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-21 09:14:58 +0300 |
commit | ba609f3600e17704f358b28dd3d5ee14319cc98c (patch) | |
tree | fcc118d7450cd6ab52af1348a73e868e981657dd /launcher/java/JavaInstallList.cpp | |
parent | be0df38453977c37ae8b6b241e82ace41149fdcc (diff) | |
parent | ca659136e2dc5f987bb5646eff0d8a7dd1b90774 (diff) | |
download | PrismLauncher-ba609f3600e17704f358b28dd3d5ee14319cc98c.tar.gz PrismLauncher-ba609f3600e17704f358b28dd3d5ee14319cc98c.tar.bz2 PrismLauncher-ba609f3600e17704f358b28dd3d5ee14319cc98c.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into visit_mod_page
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/java/JavaInstallList.cpp')
-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: |