Commit d3c5446
committed
Fix error on Windows after deleting fit node.
Fit deletion triggers onTreeSelChanged handler with event holding
the deleted and memory-released phase node. The handler calls
GetNodeType, but all node data are already gone.
Solution: Return None from GetNodeType if GetTreeItemDict gives None.
Note: Might be better to somehow disable events from the deleted nodes.
Note: Shows only on Windows, dead-node events are not raised on Mac.1 parent 94cc5ec commit d3c5446
1 file changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 | | |
182 | | - | |
| 186 | + | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
| |||
0 commit comments