Salome HOME
bos #30440 [CEA 30439] new salome doesn't clean paraview view in FIELDS
[modules/med.git] / src / MEDCalc / gui / PresentationController.cxx
index 9ce5b777cdebd64e3b79eccced69ec7d2c5d3127..c7f12753e87a612073cdf2b3d698d5f5e97b68bf 100644 (file)
@@ -1011,4 +1011,11 @@ void PresentationController::updateVisibilityState(long presId)
 
 std::string PresentationController::presentationName2Type(const std::string& name) {
   return std::regex_replace(name, std::regex("MEDPresentation"), std::string(""));
-}
\ No newline at end of file
+}
+
+void PresentationController::resetPVSession()
+{
+  QStringList commands;
+  commands += QString("pvs.ResetSession()");
+  _consoleDriver->exec(commands);
+}