Don't use the Edit Window to Copy a Procedure
This commit is contained in:
parent
3a6be9a4f5
commit
abd26062f6
@ -668,7 +668,7 @@ namespace Volian.Controls.Library
|
||||
ItemInfo.EAddpingPart pasteOpt = newtype == MenuSelections.StepBefore ? ItemInfo.EAddpingPart.Before : ItemInfo.EAddpingPart.After;
|
||||
// If parent step is open in step editor, the 'OnPasteItemInfo' event will cause
|
||||
// the item to be pasted in the step editor and the tree.
|
||||
if (!OnPasteItemInfo(this, new vlnTreeItemInfoPasteEventArgs(ii, copyStartID, pasteOpt, ii.MyContent.Type)))
|
||||
if (ii.IsProcedure || !OnPasteItemInfo(this, new vlnTreeItemInfoPasteEventArgs(ii, copyStartID, pasteOpt, ii.MyContent.Type)))
|
||||
{
|
||||
// The parent step was not open in the step editor, just paste step (in data) and add treenode.
|
||||
ItemInfo newItemInfo = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user