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

Solved a bug when showing the Open and Save Dialog boxes: they froze or were slow.

parent c8cfbdb3
No related branches found
No related tags found
No related merge requests found
...@@ -503,7 +503,7 @@ void MainWindow::openXML() ...@@ -503,7 +503,7 @@ void MainWindow::openXML()
QString path=lSettingsFile.value("Path/Open",QDir::currentPath()).toString(); QString path=lSettingsFile.value("Path/Open",QDir::currentPath()).toString();
// Opens an "open file" dialog // 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) if (fileName==NULL)
return; return;
QFileInfo file(fileName); 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