Fix crash in shortcuts - thx Andrebavila :)

Fix #5150
This commit is contained in:
niksedk 2021-06-24 19:00:26 +02:00
parent 8c52087fa6
commit cec6a489d3

View File

@ -3062,7 +3062,7 @@ namespace Nikse.SubtitleEdit.Forms.Options
{
foreach (ShortcutNode subNode in parent.Nodes)
{
if (sh != null && !sh.IsPlugin && subNode.Shortcut.Shortcut.Name == sh.Shortcut.Name)
if (sh != null && !sh.IsPlugin && !subNode.Shortcut.IsPlugin && subNode.Shortcut.Shortcut.Name == sh.Shortcut.Name)
{
subNode.Text = text + " " + shortcutText;
}