If you have three file tabs open and close the #1 from left you are taken to the next one (correctly). If you now click on the next to the right, the tab changes, but code view does not. Same happens with more tabs under similar conditions.
This seems to be due to TBMXHost.RemovePanel calling SelectPanel before RemoveGadgetItem - tabbar thinks #2 is still active after #1 is removed and #2 becomes #1. This is a problem with Win32MaxGUIEx, and may not happen on other implementations (not tested).
The patched RemovePanel is a quick fix that does not blow anything up on said MaxGUI implementation. It opens helppanel to prevent currentpanel being deleted (which crashes).
Log in to post a comment.