diff --git a/gui/dialogs/NewInstanceDialog.cpp b/gui/dialogs/NewInstanceDialog.cpp
index 51060ad2..adb5c950 100644
--- a/gui/dialogs/NewInstanceDialog.cpp
+++ b/gui/dialogs/NewInstanceDialog.cpp
@@ -98,11 +98,10 @@ NewInstanceDialog::~NewInstanceDialog()
void NewInstanceDialog::updateDialogState()
{
- ui->buttonBox->button(QDialogButtonBox::Ok)
- ->setEnabled(!instName().isEmpty()
- && m_selectedVersion
- && (!ui->modpackBox->isChecked()
- || ui->modpackEdit->hasAcceptableInput()));
+ bool allowOK = !instName().isEmpty() &&
+ (ui->versionBox->isChecked() && m_selectedVersion ||
+ (ui->modpackBox->isChecked() && ui->modpackEdit->hasAcceptableInput()));
+ ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(allowOK);
}
void NewInstanceDialog::setSelectedVersion(BaseVersionPtr version, bool initial)
diff --git a/gui/dialogs/NewInstanceDialog.ui b/gui/dialogs/NewInstanceDialog.ui
index adb7fa54..6cb0c97c 100644
--- a/gui/dialogs/NewInstanceDialog.ui
+++ b/gui/dialogs/NewInstanceDialog.ui
@@ -9,8 +9,8 @@
0
0
- 345
- 343
+ 277
+ 404
@@ -83,15 +83,8 @@
-
-
-
-
-
-
- ...
-
-
-
- -
+
+
-
&Group:
@@ -101,7 +94,7 @@
- -
+
-
@@ -114,17 +107,11 @@
- -
-
-
- false
-
-
- http://
-
-
-
- -
+
+
+ -
+
+
-
false
@@ -134,26 +121,43 @@
- -
-
-
- &Version:
+
-
+
+
+ false
-
+
+ http://
+
+
+
+ -
+
+
true
- -
-
+
-
+
- Import &Modpack:
+ ...
- -
-
-
+
-
+
+
+ Impor&t Modpack (local file or link):
+
+
+
+ -
+
+
+ Vani&lla Minecraft (select version):
+
+
true
@@ -192,9 +196,18 @@
-
-
-
+
+ instNameTextBox
+ groupBox
+ versionBox
+ versionTextBox
+ btnChangeVersion
+ modpackBox
+ modpackEdit
+ modpackBtn
+ iconButton
+
+
buttonBox