diff --git a/Applications/DataExplorer/DataView/MeshView.cpp b/Applications/DataExplorer/DataView/MeshView.cpp
index 51233de0815a6a8ba17e881c5f639cdd211851b0..f23e51df160262cdddf1a52daa7eaca3a145990d 100644
--- a/Applications/DataExplorer/DataView/MeshView.cpp
+++ b/Applications/DataExplorer/DataView/MeshView.cpp
@@ -397,15 +397,20 @@ void MeshView::exportToTetGen()
     MeshLib::Mesh const* const mesh =
         static_cast<MeshModel*>(this->model())->getMesh(index);
     QSettings const settings;
-    QString const filename = QFileDialog::getSaveFileName(
+    QFileDialog dialog(
         this, "Write TetGen input file to",
         settings.value("lastOpenedTetgenFileDirectory").toString(),
         "TetGen Geometry (*.smesh)");
-    if (!filename.isEmpty())
+    dialog.setDefaultSuffix("smesh");
+    if (dialog.exec())
     {
-        FileIO::TetGenInterface tg;
-        std::vector<MeshLib::Node> attr;
-        tg.writeTetGenSmesh(filename.toStdString(), *mesh, attr);
+        QString const filename = dialog.getSaveFileName();
+        if (!filename.isEmpty())
+        {
+            FileIO::TetGenInterface tg;
+            std::vector<MeshLib::Node> attr;
+            tg.writeTetGenSmesh(filename.toStdString(), *mesh, attr);
+        }
     }
 }