summaryrefslogtreecommitdiffstats
path: root/application/dialogs
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-03-12 19:45:28 +0100
committerPetr Mrázek <peterix@gmail.com>2017-04-07 00:20:01 +0200
commit2980322c3b34b252ead838daee7a844853feccf6 (patch)
tree4eba831705c497075d30391423a167ebc1c136fc /application/dialogs
parent8321187a20eec9871f327aa23f421e79dcfdd409 (diff)
downloadMultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar
MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar.gz
MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar.lz
MultiMC-2980322c3b34b252ead838daee7a844853feccf6.tar.xz
MultiMC-2980322c3b34b252ead838daee7a844853feccf6.zip
NOISSUE Remove Minecraft version list and versions.
Diffstat (limited to 'application/dialogs')
-rw-r--r--application/dialogs/NewInstanceDialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp
index d53e1959..2e8e3ff7 100644
--- a/application/dialogs/NewInstanceDialog.cpp
+++ b/application/dialogs/NewInstanceDialog.cpp
@@ -19,7 +19,6 @@
#include <BaseVersion.h>
#include <icons/IconList.h>
-#include <minecraft/MinecraftVersionList.h>
#include <tasks/Task.h>
#include <InstanceList.h>
@@ -62,7 +61,12 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, QWidget *pare
resize(minimumSizeHint());
layout()->setSizeConstraint(QLayout::SetFixedSize);
- setSelectedVersion(MMC->minecraftlist()->getRecommended());
+ // FIXME: bring this back...
+ auto vlist = ENV.getVersionList("net.minecraft");
+ if(vlist)
+ {
+ setSelectedVersion(vlist->getRecommended());
+ }
InstIconKey = "default";
ui->iconButton->setIcon(MMC->icons()->getIcon(InstIconKey));
@@ -192,8 +196,7 @@ BaseVersionPtr NewInstanceDialog::selectedVersion() const
void NewInstanceDialog::on_btnChangeVersion_clicked()
{
- VersionSelectDialog vselect(MMC->minecraftlist().get(), tr("Change Minecraft version"),
- this);
+ VersionSelectDialog vselect(ENV.getVersionList("net.minecraft").get(), tr("Change Minecraft version"), this);
vselect.exec();
if (vselect.result() == QDialog::Accepted)
{