aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-12-13 13:36:36 +0200
committerAvi Levkovich <avi@twine-s.com>2018-12-13 13:36:36 +0200
commitdd8771c870ca1130b86f76e3b9c4e83cd50e5f26 (patch)
tree9f7504c3cded54b8553faee66ae01025aea74c91 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels
parent9c7f5ee1554c97f34eb7fa6478b918bcad7b7bde (diff)
parent83483b721876c87151ffd73b1aa3d73a9fabc339 (diff)
downloadTango-dd8771c870ca1130b86f76e3b9c4e83cd50e5f26.tar.gz
Tango-dd8771c870ca1130b86f76e3b9c4e83cd50e5f26.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
index d1f9cda64..c9cd3276f 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
@@ -454,9 +454,9 @@ namespace Tango.MachineStudio.UI.ViewModels
if (x.SelectedMachine.RequiresAuthentication)
{
//Check machine exist on my database first
- if (!ObservablesStaticCollections.Instance.Machines.ToList().Exists(y => y.SerialNumber == x.SelectedMachine.SerialNumber))
+ if (x.SelectedMachine.Machine == null)
{
- _notificationProvider.ShowError( $"The specified machine '{x.SelectedMachine.SerialNumber}' could not be found on the database.");
+ _notificationProvider.ShowError( $"The specified machine '{x.SelectedMachine.SerialNumber}' could not be found on the database. Aborting connection.");
return;
}