diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ece235989..2494fb5749 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,7 @@ All notable changes to this project will be documented in this file. - [GUI] Only show replace col if a replaced module is installed (#2697 by: HebaruSan; reviewed: politas) - [GUI] Update all CKAN URL references (#2702 by: DasSkelett; reviewed: HebaruSan) - [GUI] Select 2nd instead of 3rd cell on MarkAllUpdatesToolButton_Click (#2704 by: DasSkelett; reviewed: politas) +- [GUI] Prevent Null entry in CompatibleKSPVersions (#2707 by: politas; reviewed: DasSkelett) ## v1.25.4 Kennedy diff --git a/GUI/CompatibleKspVersionsDialog.cs b/GUI/CompatibleKspVersionsDialog.cs index dae8628ff2..d88c4d5a38 100644 --- a/GUI/CompatibleKspVersionsDialog.cs +++ b/GUI/CompatibleKspVersionsDialog.cs @@ -86,6 +86,11 @@ private void AddVersionToListButton_Click(object sender, EventArgs e) { return; } + if (AddVersionToListTextBox.Text.ToLower() == "any") + { + MessageBox.Show("Version has invalid format", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } try { var version = KspVersion.Parse(AddVersionToListTextBox.Text);