Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit aa83801f authored by Michael KRISPER's avatar Michael KRISPER
Browse files

Check if Vehicle File exists before trying to read it (was a problem when creating a new file)

parent c634bd57
Branches
Tags
No related merge requests found
...@@ -532,7 +532,7 @@ Public Class VehicleForm ...@@ -532,7 +532,7 @@ Public Class VehicleForm
Private Function CreateREESSPackListViewItem(batFile As String, count As Integer, stringid As Integer) As ListViewItem Private Function CreateREESSPackListViewItem(batFile As String, count As Integer, stringid As Integer) As ListViewItem
dim retval as new ListViewItem dim retval as new ListViewItem
retVal.SubItems(0).Text = GetRelativePath(batFile, Path.GetDirectoryName(_vehFile)) retVal.SubItems(0).Text = If(File.Exists(_vehFile), GetRelativePath(batFile, Path.GetDirectoryName(_vehFile)), batFile)
retVal.SubItems.Add(count.ToGUIFormat()) retVal.SubItems.Add(count.ToGUIFormat())
retval.SubItems.Add(stringid.ToGUIFormat()) retval.SubItems.Add(stringid.ToGUIFormat())
return retval return retval
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment