Skip to content

Commit

Permalink
Fixes issue 86Box#113
Browse files Browse the repository at this point in the history
Also updated version and copyright year and removed redundant invalid characters in VM name check for the Add button
  • Loading branch information
daviunic committed Dec 28, 2022
1 parent 45a67f8 commit f853b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions 86BoxManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("David Simunič and others")]
[assembly: AssemblyProduct("86Box Manager")]
[assembly: AssemblyCopyright("Copyright © 2018-2022 David Simunič and others")]
[assembly: AssemblyCopyright("Copyright © 2018-2023 David Simunič and others")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.7.4.0")]
[assembly: AssemblyFileVersion("1.7.4.0")]
[assembly: AssemblyVersion("1.7.5.0")]
[assembly: AssemblyFileVersion("1.7.5.0")]
7 changes: 2 additions & 5 deletions 86BoxManager/dlgAddVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@ private void btnAdd_Click(object sender, EventArgs e)
if (main.VMCheckIfExists(txtName.Text))
{
MessageBox.Show("A virtual machine with this name already exists. Please pick a different name.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (txtName.Text.IndexOfAny(Path.GetInvalidFileNameChars()) >= 0)
{
MessageBox.Show("There are invalid characters in the name you specified. You can't use the following characters: \\ / : * ? \" < > |", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
DialogResult = DialogResult.None;
return;
}
if (existingVM && string.IsNullOrWhiteSpace(txtImportPath.Text))
{
MessageBox.Show("If you wish to import VM files, you must specify a path.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
DialogResult = DialogResult.None;
return;
}

Expand Down

0 comments on commit f853b21

Please sign in to comment.