mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Fix crash after commit 57c8c753cb
- thx OmrSi :)
This commit is contained in:
parent
57c8c753cb
commit
12481e7136
@ -1450,8 +1450,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
treeViewShortcuts.ExpandAll();
|
||||
treeViewShortcuts.EndUpdate();
|
||||
if (treeViewShortcuts.Nodes.Count > 0)
|
||||
{
|
||||
treeViewShortcuts.SelectedNode = treeViewShortcuts.Nodes[0];
|
||||
}
|
||||
}
|
||||
|
||||
private void AddNode(TreeNode parentNode, string text, ShortcutHelper shortcut)
|
||||
{
|
||||
@ -3431,6 +3434,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
var s = new XmlSerializer(typeof(Shortcuts));
|
||||
Configuration.Settings.Shortcuts = (Shortcuts)s.Deserialize(r);
|
||||
r.Close();
|
||||
textBoxShortcutSearch.Text = String.Empty;
|
||||
MakeShortcutsTreeView(Configuration.Settings.Language.Settings);
|
||||
ShowShortcutsTreeView();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user