Fix crash when replying macro including alt+r
Fix crash when replying macro including alt+r

Task-number: QTCREATORBUG-5331

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

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