From f8b0d6453ae81488ddfd4c83b329e2c88787c49e Mon Sep 17 00:00:00 2001 From: flow Date: Mon, 21 Feb 2022 23:25:33 -0300 Subject: [PATCH] fix: sort mod list in confirmation dialog --- launcher/ui/dialogs/ModDownloadDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launcher/ui/dialogs/ModDownloadDialog.cpp b/launcher/ui/dialogs/ModDownloadDialog.cpp index 6240ecdc..439f22c4 100644 --- a/launcher/ui/dialogs/ModDownloadDialog.cpp +++ b/launcher/ui/dialogs/ModDownloadDialog.cpp @@ -71,8 +71,11 @@ void ModDownloadDialog::reject() void ModDownloadDialog::confirm() { + auto keys = modTask.keys(); + keys.sort(Qt::CaseInsensitive); + auto info = QString("You're about to download the following mods:\n\n"); - for(auto task : modTask.keys()){ + for(auto task : keys){ info.append(task); info.append("\n --> File name: "); info.append(modTask.find(task).value()->getFilename());