diff --git a/source/RobotAPI/libraries/armem_gui/disk/ControlWidget.cpp b/source/RobotAPI/libraries/armem_gui/disk/ControlWidget.cpp
index 21fde4574fb445d662474de5a3f56a9223df6dca..bf1226ba00a132928b5caf1985b9d3d53b144860 100644
--- a/source/RobotAPI/libraries/armem_gui/disk/ControlWidget.cpp
+++ b/source/RobotAPI/libraries/armem_gui/disk/ControlWidget.cpp
@@ -170,19 +170,12 @@ namespace armarx::armem::gui::disk
 
     QString ControlWidget::chooseDirectoryDialog()
     {
-        QFileDialog dialog;
-        dialog.setFileMode(QFileDialog::DirectoryOnly);
-        dialog.setOption(QFileDialog::ShowDirsOnly, false);
-        dialog.setDirectory(_latestDirectory);
-        if (dialog.exec())
-        {
-            _latestDirectory = dialog.directory().path();
-            return _latestDirectory;
-        }
-        else
-        {
-            return QString::fromStdString("");
-        }
+        _latestDirectory = QFileDialog::getExistingDirectory(this, "Open query result",
+                                                             _latestDirectory,
+                                                             QFileDialog::ShowDirsOnly
+                                                             | QFileDialog::DontResolveSymlinks);
+
+        return _latestDirectory;
     }
 
 }