From abc99914cfe72ce4cd04603cc96c075eb012e07d Mon Sep 17 00:00:00 2001 From: Sergi Hernandez Juan <shernand@iri.upc.edu> Date: Tue, 22 Sep 2020 16:37:42 +0200 Subject: [PATCH] Solved other instances of the Save/Load dialog box bug. --- OpenRoadEd/Qt/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRoadEd/Qt/MainWindow.cpp b/OpenRoadEd/Qt/MainWindow.cpp index 4facc18..3b8a71d 100644 --- a/OpenRoadEd/Qt/MainWindow.cpp +++ b/OpenRoadEd/Qt/MainWindow.cpp @@ -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); -- GitLab