- cppcheck complains (...and is right) that the iterator is dereferenced after having been erased

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9766 2a5c6006-c6dd-42ca-98ab-0921f2732cef
* ui: Don't switch to the project's pane in the notebook, when an editor is activated and the option to show the file in the tree is enabled (apply modified patch #3556, thanks davidallen)

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9767 2a5c6006-c6dd-42ca-98ab-0921f2732cef