Skip to content
Snippets Groups Projects
Commit abc99914 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved other instances of the Save/Load dialog box bug.

parent 4b3217cd
No related branches found
No related tags found
No related merge requests found
......@@ -554,7 +554,7 @@ void MainWindow::saveXML()
QString path=lSettingsFile.value("Path/SaveXML",QDir::currentPath()).toString();
// Opens an "save file" dialog
QString fileName = QFileDialog::getSaveFileName(this,tr("Save File"),path, tr("OpenDRIVE (*.xodr *.xml)"));
QString fileName = QFileDialog::getSaveFileName(this,tr("Save File"),path, tr("OpenDRIVE (*.xodr *.xml)"),0,QFileDialog::DontUseNativeDialog);
if (fileName==NULL)
return;
QFileInfo file(fileName);
......@@ -578,7 +578,7 @@ void MainWindow::saveOSG()
QString path=lSettingsFile.value("Path/SaveOSG",QDir::currentPath()).toString();
// Opens an "save file" dialog
QString fileName = QFileDialog::getSaveFileName(this,tr("Save File"), QDir::currentPath(), tr("OpenDRIVE (*.osg)"));
QString fileName = QFileDialog::getSaveFileName(this,tr("Save File"), QDir::currentPath(), tr("OpenDRIVE (*.osg)"),0,QFileDialog::DontUseNativeDialog);
if (fileName==NULL)
return;
QFileInfo file(fileName);
......@@ -630,7 +630,7 @@ void MainWindow::OnTakeScreenshot()
QString path=lSettingsFile.value("Path/Screenshot",QDir::currentPath()).toString();
// Opens an "save file" dialog
QString fileName = QFileDialog::getSaveFileName(this,tr("Save File"),path, tr("PNG (*.png)"));
QString fileName = QFileDialog::getSaveFileName(this,tr("Save File"),path, tr("PNG (*.png)"),0,QFileDialog::DontUseNativeDialog);
if (fileName==NULL)
return;
QFileInfo file(fileName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment