From fbb832e2e05038c2ace5fb26b6f7554476780ada Mon Sep 17 00:00:00 2001
From: "harald.martini@student.tugraz.at" <harald.martini@student.tugraz.at>
Date: Thu, 8 Jul 2021 10:16:18 +0200
Subject: [PATCH] Add check for Invalid Entries count in
 AdditionalJobInfoViewModel

---
 .../Implementation/Common/AdditionalJobInfoViewModel.cs        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/VECTO3GUI2020/ViewModel/Implementation/Common/AdditionalJobInfoViewModel.cs b/VECTO3GUI2020/ViewModel/Implementation/Common/AdditionalJobInfoViewModel.cs
index 9694134f86..38ade1e7f1 100644
--- a/VECTO3GUI2020/ViewModel/Implementation/Common/AdditionalJobInfoViewModel.cs
+++ b/VECTO3GUI2020/ViewModel/Implementation/Common/AdditionalJobInfoViewModel.cs
@@ -53,6 +53,7 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Common
 					"this class should only be used to extend the functionality of a class that implements the IMultistageJobViewModel interface");
 			}
 
+			//Title += $"- {_parent.DataSource.}"
 			if (_parent.CanBeSimulated) {
 				return;
 			}
@@ -64,7 +65,7 @@ namespace VECTO3GUI2020.ViewModel.Implementation.Common
 			//}
 
 			
-			if (_parent.InvalidEntries != null) {
+			if (_parent.InvalidEntries != null && _parent.InvalidEntries.Count != 0) {
 				ErrorInfo = "This Job cannot be Simulated because the following Parameters are invalid";
 				foreach (var parentInvalidEntry in _parent.InvalidEntries)
 				{
-- 
GitLab