I can confirm this bug in linux and on windows.
I attach a patch that can fix it, and what's more fixes another error:
if the project-tree gets rebuild the expanded nodes get remembered, but not the selected node (you can see this if you add new files with the classwizard, after adding the root item will always be selected).
Please test it !
It seems to work without problems, but I have no time to do a longer test, because I will not be at home the next two weeks from monday to friday and I have no internet at work (at least not the ifrst week).
Any response will reache me until this tomorrow morning 5:00 AM UTC or next friday late evening.
Other devs please have a look into the changes to globals.*, especially if their are objections to commit it (if no substantial errors will be found).
[attachment deleted by admin]