From 4b3217cd6b38f816d2cee9da0d0a9bec18c7e2a1 Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Tue, 22 Sep 2020 09:03:39 +0200
Subject: [PATCH] Solved a bug when showing the Open and Save Dialog boxes:
 they froze or were slow.

---
 OpenRoadEd/Qt/MainWindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/OpenRoadEd/Qt/MainWindow.cpp b/OpenRoadEd/Qt/MainWindow.cpp
index 6003991..4facc18 100644
--- a/OpenRoadEd/Qt/MainWindow.cpp
+++ b/OpenRoadEd/Qt/MainWindow.cpp
@@ -503,7 +503,7 @@ void MainWindow::openXML()
   
   QString path=lSettingsFile.value("Path/Open",QDir::currentPath()).toString();
 	// Opens an "open file" dialog
-	QString fileName = QFileDialog::getOpenFileName(this,tr("Open File"), path, tr("OpenDRIVE (*.xodr *.xml)"));
+	QString fileName = QFileDialog::getOpenFileName(NULL,tr("Open File"), path, tr("OpenDRIVE (*.xodr *.xml)"),0,QFileDialog::DontUseNativeDialog);
 	if (fileName==NULL)
 		return;
   QFileInfo file(fileName);
-- 
GitLab