Skip to content

Commit

Permalink
Merge #2707 Prevent Null entry in CompatibleKSPVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
politas committed Mar 31, 2019
2 parents 3cf72c5 + 7a079a8 commit aa98a7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions GUI/CompatibleKspVersionsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa98a7e

Please sign in to comment.