summaryrefslogtreecommitdiffstats
path: root/gui/pages/VersionPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pages/VersionPage.cpp')
-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);
+ }
}