diff --git a/FileIO/ImportFileTypes.h b/FileIO/ImportFileTypes.h index 150f075b156866257374a7c88af15e5b808f04f6..449092e3a08cfdefbe5c07d28628b4333f2a6d7f 100644 --- a/FileIO/ImportFileTypes.h +++ b/FileIO/ImportFileTypes.h @@ -48,7 +48,7 @@ public: else if (t==ImportFileType::SHAPE) return "Shape"; else if (t==ImportFileType::TETGEN) return "TetGen node"; else if (t==ImportFileType::VTK) return "VTK"; - else ""; + else return ""; } static std::string getFileSuffixString(ImportFileType::type t) @@ -73,7 +73,7 @@ public: return "TetGen node files (*.node)"; else if (t==ImportFileType::VTK) return "VTK files (*.vtk *.vti *.vtr *.vts *.vtp *.vtu)"; - else "All files (*.*)"; + else return "All files (*.*)"; } }; diff --git a/Gui/mainwindow.cpp b/Gui/mainwindow.cpp index fb01bb3cae8ba05f2bf0f052632ecf3a4ab8a232..b5cf38e36b64ed13c94857690b0a8b3c382f3a5e 100644 --- a/Gui/mainwindow.cpp +++ b/Gui/mainwindow.cpp @@ -570,6 +570,10 @@ void MainWindow::loadFile(ImportFileType::type t, const QString &fileName) _meshModels->addMesh(mesh); } } + else if (t == ImportFileType::GMSH) + { + // TODO6 + } else if (t == ImportFileType::NETCDF) { // NetCDF files