vcsbase: fix bug causing redundant output
vcsbase: fix bug causing redundant output

In VCSJobRunner::task() some execution paths left a signal/slot
connection, causing redundant output emission.
This would occur for example after a VCS job fails : if the next
job succeeds then its output is emitted twice, because the previous
connection for signal output() was not destroyed.
The bug is now fixed by ensuring disconnect is done for all execution
paths (thanks to helper DisconnectSignalHelper).

Change-Id: I67a7ba2829208f7e71158cb17a99575d79c9f9f7
Merge-request: 364
Reviewed-by: Tobias Hunger <012f8d714267bccc9d4766fbeace9f175fcc70c4@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/2997

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