Fix a freeze in QFileDialog (Mac)
Fix a freeze in QFileDialog (Mac)

Running an open file dialog, for example with QFileDialog::getOpenFileName() can lead to a freeze if the user selects a folder, then selects a file in the parent folder and finally confirms the open dialog.

Merge-request: 1327
Reviewed-by: Richard Moe Gustavsen <881e230b58d8abf8efbd9b8ce5a2db05f1d53614@nokia.com>

pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,radekp/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,igor-sfdc/qt-wk,KDE/qt,RLovelett/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,radekp/qt,radekp/qt,igor-sfdc/qt-wk,radekp/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,radekp/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,radekp/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,RLovelett/qt,KDE/qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,RLovelett/qt,radekp/qt,radekp/qt,KDE/qt,igor-sfdc/qt-wk,RLovelett/qt,KDE/qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,KDE/qt,KDE/qt,radekp/qt,pruiz/wkhtmltopdf-qt,RLovelett/qt,RLovelett/qt,radekp/qt,RLovelett/qt,RLovelett/qt,RLovelett/qt,KDE/qt,KDE/qt,pruiz/wkhtmltopdf-qt