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:
parent
74d0446aca
commit
04760fb2a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue