Ignore doubleclick if no workspace is active

- Issue MatterHackers/MCCentral#4223
Double clicking a part on the left bar before opening a printer throws an exception
This commit is contained in:
John Lewin 2018-10-03 21:51:03 -07:00 committed by Lars Brubaker
parent 74d0446aca
commit 04760fb2a4

View file

@ -422,7 +422,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
if (itemModel != null)
{
var activeContext = ApplicationController.Instance.DragDropData;
activeContext.SceneContext.AddToPlate(new[] { itemModel });
activeContext.SceneContext?.AddToPlate(new[] { itemModel });
}
}
});