Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Src/xWorks/DTMenuHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,18 @@ public bool OnDataTreeMerge(object cmd)
{
Slice current = m_dataEntryForm.CurrentSlice;
Debug.Assert(current != null, "No slice was current");
if (current != null)
current.HandleMergeCommand(true);
if (current == null)
{
return false;
}
Command command = cmd as Command;
string className = command?.ConfigurationNode?.FirstChild?.Attributes["className"]?.Value;
if (className == "LexSense" && current.Object?.ClassName != "LexSense")
{
// Lexicon Edit Popup must match the class (LT-22352).
return false;
}
current.HandleMergeCommand(true);
return true; //we handled this.
}

Expand Down
Loading