From a4133ce243df9b5a7c0415c28fe5db70fadf1857 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Wed, 13 Feb 2019 16:22:49 -0500 Subject: [PATCH] fix game ordering --- GUI/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 1bf3f91..615f7b6 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -210,8 +210,8 @@ void MainWindow::AttachProcess() void MainWindow::LaunchProcess() { QStringList savedProcesses = QString::fromUtf8(QTextFile(GAME_SAVE_FILE, QIODevice::ReadOnly).readAll()).split("\n", QString::SkipEmptyParts); - savedProcesses.removeDuplicates(); std::reverse(savedProcesses.begin(), savedProcesses.end()); + savedProcesses.removeDuplicates(); savedProcesses.push_back(SEARCH_GAME); std::wstring process = S(QInputDialog::getItem(this, SELECT_PROCESS, "", savedProcesses, 0, true, &ok, Qt::WindowCloseButtonHint)); if (!ok) return;