textadventures / quest

Create text adventure games
http://textadventures.co.uk/quest
MIT License
303 stars 68 forks source link

deleted items in filtered search in object browser remain, the search isn't refreshed #1105

Closed GeminiSquishGames closed 1 month ago

GeminiSquishGames commented 3 years ago

This error happens when I search for things in the object browser and click on the filtered results.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TextAdventures.Quest.EditorControls.WFEditorTree.SetSelectedItemNoEvent(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.ChangeSelection(String key) at TextAdventures.Quest.EditorControls.WFEditorTree.lstSearchResults_ItemSelectionChanged(Object sender, ListViewItemSelectionChangedEventArgs e) at System.Windows.Forms.ListView.OnItemSelectionChanged(ListViewItemSelectionChangedEventArgs e) at System.Windows.Forms.ListView.WmReflectNotify(Message& m) at System.Windows.Forms.ListView.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

alexwarren commented 1 month ago

Closing out old issues. Please re-open with any additional repro steps if this is still a problem.