summaryrefslogtreecommitdiffstats
path: root/gui/pages
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-08 19:01:19 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:31 +0200
commit223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136 (patch)
tree438609315448ac51ce9b6c62452e1355b0536a38 /gui/pages
parent84ae67fff5bfa9de011daf4144802569687f1e6b (diff)
downloadMultiMC-223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136.tar
MultiMC-223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136.tar.gz
MultiMC-223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136.tar.lz
MultiMC-223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136.tar.xz
MultiMC-223a7aba7bfa6019d8a2cfa5e8f8a4791a96d136.zip
Hardcode LWJGL 2.9.1 for OneSix, only allow chancging Minecraft versions for now.
Diffstat (limited to 'gui/pages')
-rw-r--r--gui/pages/VersionPage.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/pages/VersionPage.cpp b/gui/pages/VersionPage.cpp
index cc728e75..359e71c4 100644
--- a/gui/pages/VersionPage.cpp
+++ b/gui/pages/VersionPage.cpp
@@ -368,4 +368,12 @@ void VersionPage::versionCurrent(const QModelIndex &current, const QModelIndex &
ui->moveLibraryDownBtn->setEnabled(enabled);
ui->moveLibraryUpBtn->setEnabled(enabled);
}
+ if(m_version->versionFileId(current.row()) == "net.minecraft")
+ {
+ ui->changeMCVersionBtn->setEnabled(true);
+ }
+ else
+ {
+ ui->changeMCVersionBtn->setEnabled(false);
+ }
}