Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 92adcb02 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

avoid opening non-json files

parent 790ee765
No related branches found
No related tags found
No related merge requests found
......@@ -581,6 +581,10 @@ Imports VectoAuxiliaries
f = LvGEN.SelectedItems(0).SubItems(0).Text
f = FileRepl(f)
If Path.GetExtension(f) <> VectoCore.Configuration.Constants.FileExtensions.VectoJobFile Then
MsgBox("Job File " + f + " can not be opened in Job Editor. Try importing the file.")
Exit Sub
End If
If Not File.Exists(f) Then
MsgBox(f & " not found!")
Else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment