Fix crash with multiple search results.
Fix crash with multiple search results.

Fixes a crash when having the oldest search result open while initiating
a new search (e.g. find usages).

Change-Id: I825266b28daaf472e48299a51719a058af7bba6e
Reviewed-on: http://codereview.qt-project.org/4952
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@nokia.com>

amyvmiwei/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,KDAB/KDAB-Creator,hdweiss/qt-creator-visualizer,syntheticpp/qt-creator,darksylinc/qt-creator,farseerri/git_code,jonnor/qt-creator,xianian/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,farseerri/git_code,duythanhphan/qt-creator,hdweiss/qt-creator-visualizer,KDAB/KDAB-Creator,darksylinc/qt-creator,azat/qtcreator,syntheticpp/qt-creator,darksylinc/qt-creator,KDAB/KDAB-Creator,farseerri/git_code,amyvmiwei/qt-creator,maui-packages/qt-creator,farseerri/git_code,omniacreator/qtcreator,maui-packages/qt-creator,bakaiadam/collaborative_qt_creator,syntheticpp/qt-creator,KDE/android-qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,xianian/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,ostash/qt-creator-i18n-uk,richardmg/qtcreator,xianian/qt-creator,danimo/qt-creator,Distrotech/qtcreator,xianian/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,duythanhphan/qt-creator,azat/qtcreator,jonnor/qt-creator,azat/qtcreator,Distrotech/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,colede/qtcreator,ostash/qt-creator-i18n-uk,richardmg/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,farseerri/git_code,xianian/qt-creator,danimo/qt-creator,hdweiss/qt-creator-visualizer,KDE/android-qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,richardmg/qtcreator,duythanhphan/qt-creator,KDE/android-qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,KDE/android-qt-creator,jonnor/qt-creator,danimo/qt-creator,colede/qtcreator,bakaiadam/collaborative_qt_creator,richardmg/qtcreator,KDAB/KDAB-Creator,kuba1/qtcreator,martyone/sailfish-qtcreator,jonnor/qt-creator,richardmg/qtcreator,malikcjm/qtcreator,azat/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,kuba1/qtcreator,amyvmiwei/qt-creator,duythanhphan/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,colede/qtcreator,kuba1/qtcreator,hdweiss/qt-creator-visualizer,ostash/qt-creator-i18n-uk,amyvmiwei/qt-creator,syntheticpp/qt-creator,hdweiss/qt-creator-visualizer,bakaiadam/collaborative_qt_creator,bakaiadam/collaborative_qt_creator,amyvmiwei/qt-creator,omniacreator/qtcreator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,maui-packages/qt-creator,KDE/android-qt-creator,syntheticpp/qt-creator,Distrotech/qtcreator,KDE/android-qt-creator,ostash/qt-creator-i18n-uk,martyone/sailfish-qtcreator,richardmg/qtcreator,ostash/qt-creator-i18n-uk,colede/qtcreator,malikcjm/qtcreator,omniacreator/qtcreator,KDE/android-qt-creator,colede/qtcreator,malikcjm/qtcreator,bakaiadam/collaborative_qt_creator,martyone/sailfish-qtcreator,KDAB/KDAB-Creator,bakaiadam/collaborative_qt_creator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,omniacreator/qtcreator,jonnor/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,omniacreator/qtcreator,bakaiadam/collaborative_qt_creator,duythanhphan/qt-creator,danimo/qt-creator,xianian/qt-creator,malikcjm/qtcreator,AltarBeastiful/qt-creator,malikcjm/qtcreator,Distrotech/qtcreator,colede/qtcreator,farseerri/git_code,danimo/qt-creator,KDE/android-qt-creator,jonnor/qt-creator,danimo/qt-creator,azat/qtcreator,amyvmiwei/qt-creator,KDAB/KDAB-Creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,danimo/qt-creator,xianian/qt-creator,syntheticpp/qt-creator,kuba1/qtcreator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,azat/qtcreator,danimo/qt-creator,ostash/qt-creator-i18n-uk,colede/qtcreator,omniacreator/qtcreator