added DontUseNativeDialog as default flag in file dialog in order to avoid some crashed when not using it

This commit is contained in:
csoler 2016-07-29 21:58:31 +02:00
parent 431dd68509
commit 1707c07937

View File

@ -303,7 +303,7 @@ bool misc::getOpenFileName(QWidget *parent, RshareSettings::enumLastDir type
{
QString lastDir = Settings->getLastDir(type);
file = QFileDialog::getOpenFileName(parent, caption, lastDir, filter, NULL, QFileDialog::DontResolveSymlinks | options);
file = QFileDialog::getOpenFileName(parent, caption, lastDir, filter, NULL, QFileDialog::DontResolveSymlinks | QFileDialog::DontUseNativeDialog | options);
if (file.isEmpty())
return false;