Reset last active element when removing all non-static items from the list view. This fixes a crash in tree viewer when switching between different trees, the  last active (selected) element in the list view was then invalid Thanks to Luca Grandi for the report and test case.
Reset last active element when removing all non-static items from the list view.
This fixes a crash in tree viewer when switching between different trees, the 
last active (selected) element in the list view was then invalid
Thanks to Luca Grandi for the report and test case.


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@29051 27541ba8-7e3a-0410-8455-c3a389f83636

olifre/root,root-mirror/root,sawenzel/root,esakellari/my_root_for_test,perovic/root,zzxuanyuan/root,buuck/root,nilqed/root,Dr15Jones/root,vukasinmilosevic/root,vukasinmilosevic/root,tc3t/qoot,simonpf/root,mkret2/root,dfunke/root,jrtomps/root,mattkretz/root,CristinaCristescu/root,simonpf/root,strykejern/TTreeReader,sawenzel/root,jrtomps/root,mhuwiler/rootauto,strykejern/TTreeReader,agarciamontoro/root,pspe/root,olifre/root,georgtroska/root,mattkretz/root,Y--/root,nilqed/root,CristinaCristescu/root,arch1tect0r/root,esakellari/my_root_for_test,CristinaCristescu/root,georgtroska/root,veprbl/root,satyarth934/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,nilqed/root,mkret2/root,simonpf/root,nilqed/root,esakellari/root,bbockelm/root,evgeny-boger/root,sirinath/root,sirinath/root,georgtroska/root,sbinet/cxx-root,vukasinmilosevic/root,georgtroska/root,sbinet/cxx-root,esakellari/my_root_for_test,davidlt/root,Y--/root,jrtomps/root,beniz/root,lgiommi/root,Dr15Jones/root,CristinaCristescu/root,agarciamontoro/root,sawenzel/root,smarinac/root,cxx-hep/root-cern,ffurano/root5,Duraznos/root,krafczyk/root,gbitzes/root,simonpf/root,gganis/root,satyarth934/root,satyarth934/root,mattkretz/root,kirbyherm/root-r-tools,sbinet/cxx-root,bbockelm/root,root-mirror/root,jrtomps/root,sirinath/root,BerserkerTroll/root,nilqed/root,satyarth934/root,esakellari/root,zzxuanyuan/root,georgtroska/root,gbitzes/root,arch1tect0r/root,root-mirror/root,smarinac/root,veprbl/root,jrtomps/root,gbitzes/root,abhinavmoudgil95/root,sirinath/root,nilqed/root,bbockelm/root,sawenzel/root,mhuwiler/rootauto,omazapa/root,veprbl/root,esakellari/root,abhinavmoudgil95/root,BerserkerTroll/root,beniz/root,gganis/root,esakellari/root,omazapa/root-old,abhinavmoudgil95/root,Y--/root,krafczyk/root,CristinaCristescu/root,bbockelm/root,evgeny-boger/root,dfunke/root,dfunke/root,dfunke/root,olifre/root,Duraznos/root,mattkretz/root,gbitzes/root,perovic/root,lgiommi/root,buuck/root,omazapa/root-old,BerserkerTroll/root,satyarth934/root,cxx-hep/root-cern,esakellari/root,evgeny-boger/root,Duraznos/root,ffurano/root5,perovic/root,jrtomps/root,omazapa/root,0x0all/ROOT,vukasinmilosevic/root,abhinavmoudgil95/root,mhuwiler/rootauto,gbitzes/root,ffurano/root5,abhinavmoudgil95/root,thomaskeck/root,mhuwiler/rootauto,BerserkerTroll/root,nilqed/root,agarciamontoro/root,strykejern/TTreeReader,beniz/root,karies/root,vukasinmilosevic/root,buuck/root,beniz/root,tc3t/qoot,sirinath/root,Duraznos/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,perovic/root,0x0all/ROOT,Y--/root,krafczyk/root,dfunke/root,mkret2/root,BerserkerTroll/root,root-mirror/root,agarciamontoro/root,arch1tect0r/root,arch1tect0r/root,beniz/root,ffurano/root5,0x0all/ROOT,BerserkerTroll/root,jrtomps/root,kirbyherm/root-r-tools,tc3t/qoot,cxx-hep/root-cern,omazapa/root-old,agarciamontoro/root,evgeny-boger/root,satyarth934/root,omazapa/root,esakellari/root,gganis/root,Y--/root,alexschlueter/cern-root,zzxuanyuan/root-compressor-dummy,bbockelm/root,0x0all/ROOT,mattkretz/root,nilqed/root,omazapa/root,ffurano/root5,mhuwiler/rootauto,dfunke/root,root-mirror/root,BerserkerTroll/root,tc3t/qoot,dfunke/root,thomaskeck/root,krafczyk/root,omazapa/root,buuck/root,omazapa/root-old,sbinet/cxx-root,thomaskeck/root,evgeny-boger/root,strykejern/TTreeReader,sawenzel/root,georgtroska/root,georgtroska/root,karies/root,root-mirror/root,agarciamontoro/root,smarinac/root,gganis/root,evgeny-boger/root,krafczyk/root,mhuwiler/rootauto,jrtomps/root,thomaskeck/root,olifre/root,lgiommi/root,Y--/root,veprbl/root,zzxuanyuan/root,pspe/root,lgiommi/root,ffurano/root5,davidlt/root,krafczyk/root,zzxuanyuan/root,jrtomps/root,mkret2/root,sawenzel/root,nilqed/root,davidlt/root,omazapa/root,kirbyherm/root-r-tools,thomaskeck/root,lgiommi/root,georgtroska/root,kirbyherm/root-r-tools,bbockelm/root,BerserkerTroll/root,BerserkerTroll/root,smarinac/root,omazapa/root-old,krafczyk/root,Dr15Jones/root,root-mirror/root,veprbl/root,tc3t/qoot,gganis/root,georgtroska/root,sbinet/cxx-root,karies/root,gganis/root,pspe/root,kirbyherm/root-r-tools,pspe/root,gganis/root,arch1tect0r/root,thomaskeck/root,omazapa/root,abhinavmoudgil95/root,cxx-hep/root-cern,gganis/root,pspe/root,mhuwiler/rootauto,georgtroska/root,simonpf/root,gbitzes/root,abhinavmoudgil95/root,karies/root,Y--/root,karies/root,mkret2/root,CristinaCristescu/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,perovic/root,strykejern/TTreeReader,esakellari/my_root_for_test,buuck/root,simonpf/root,sawenzel/root,abhinavmoudgil95/root,esakellari/my_root_for_test,gbitzes/root,olifre/root,pspe/root,perovic/root,dfunke/root,gganis/root,zzxuanyuan/root-compressor-dummy,gganis/root,veprbl/root,sawenzel/root,simonpf/root,Y--/root,zzxuanyuan/root-compressor-dummy,Dr15Jones/root,karies/root,davidlt/root,pspe/root,buuck/root,zzxuanyuan/root,mkret2/root,olifre/root,karies/root,lgiommi/root,Duraznos/root,zzxuanyuan/root,dfunke/root,cxx-hep/root-cern,smarinac/root,Y--/root,satyarth934/root,davidlt/root,veprbl/root,davidlt/root,alexschlueter/cern-root,veprbl/root,root-mirror/root,agarciamontoro/root,simonpf/root,buuck/root,smarinac/root,beniz/root,simonpf/root,omazapa/root-old,Duraznos/root,mattkretz/root,lgiommi/root,dfunke/root,olifre/root,pspe/root,vukasinmilosevic/root,evgeny-boger/root,zzxuanyuan/root,georgtroska/root,sawenzel/root,arch1tect0r/root,beniz/root,zzxuanyuan/root,vukasinmilosevic/root,Dr15Jones/root,mattkretz/root,sawenzel/root,mkret2/root,evgeny-boger/root,Duraznos/root,smarinac/root,arch1tect0r/root,kirbyherm/root-r-tools,omazapa/root-old,esakellari/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,CristinaCristescu/root,mkret2/root,BerserkerTroll/root,tc3t/qoot,gbitzes/root,tc3t/qoot,CristinaCristescu/root,buuck/root,BerserkerTroll/root,CristinaCristescu/root,arch1tect0r/root,esakellari/root,perovic/root,omazapa/root,karies/root,perovic/root,olifre/root,alexschlueter/cern-root,davidlt/root,smarinac/root,0x0all/ROOT,mkret2/root,root-mirror/root,Dr15Jones/root,mattkretz/root,Duraznos/root,sbinet/cxx-root,krafczyk/root,davidlt/root,jrtomps/root,buuck/root,thomaskeck/root,smarinac/root,satyarth934/root,satyarth934/root,olifre/root,sirinath/root,beniz/root,mkret2/root,0x0all/ROOT,arch1tect0r/root,agarciamontoro/root,mkret2/root,olifre/root,esakellari/root,Y--/root,veprbl/root,esakellari/root,mattkretz/root,buuck/root,davidlt/root,pspe/root,abhinavmoudgil95/root,esakellari/my_root_for_test,bbockelm/root,lgiommi/root,alexschlueter/cern-root,veprbl/root,sbinet/cxx-root,omazapa/root,simonpf/root,omazapa/root-old,olifre/root,0x0all/ROOT,simonpf/root,alexschlueter/cern-root,mhuwiler/rootauto,mhuwiler/rootauto,lgiommi/root,evgeny-boger/root,buuck/root,root-mirror/root,omazapa/root,karies/root,thomaskeck/root,Duraznos/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,kirbyherm/root-r-tools,Duraznos/root,perovic/root,arch1tect0r/root,krafczyk/root,sirinath/root,sirinath/root,sirinath/root,cxx-hep/root-cern,alexschlueter/cern-root,perovic/root,beniz/root,esakellari/root,vukasinmilosevic/root,lgiommi/root,omazapa/root,strykejern/TTreeReader,root-mirror/root,zzxuanyuan/root-compressor-dummy,tc3t/qoot,omazapa/root-old,mhuwiler/rootauto,abhinavmoudgil95/root,gganis/root,zzxuanyuan/root,CristinaCristescu/root,arch1tect0r/root,thomaskeck/root,beniz/root,ffurano/root5,karies/root,smarinac/root,cxx-hep/root-cern,mattkretz/root,cxx-hep/root-cern,0x0all/ROOT,bbockelm/root,omazapa/root-old,0x0all/ROOT,sirinath/root,pspe/root,bbockelm/root,tc3t/qoot,tc3t/qoot,sawenzel/root,omazapa/root-old,satyarth934/root,Duraznos/root,nilqed/root,esakellari/my_root_for_test,satyarth934/root,CristinaCristescu/root,pspe/root,Y--/root,vukasinmilosevic/root,davidlt/root,jrtomps/root,krafczyk/root,esakellari/my_root_for_test,davidlt/root,zzxuanyuan/root,thomaskeck/root,zzxuanyuan/root-compressor-dummy,agarciamontoro/root,bbockelm/root,beniz/root,vukasinmilosevic/root,lgiommi/root,dfunke/root,karies/root,gbitzes/root,zzxuanyuan/root-compressor-dummy,perovic/root,sbinet/cxx-root,alexschlueter/cern-root,zzxuanyuan/root,gbitzes/root,bbockelm/root,evgeny-boger/root,sirinath/root,evgeny-boger/root,mhuwiler/rootauto,abhinavmoudgil95/root,agarciamontoro/root,sbinet/cxx-root,veprbl/root,Dr15Jones/root,sbinet/cxx-root,krafczyk/root,strykejern/TTreeReader,zzxuanyuan/root,nilqed/root