X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCAM%2FCAM_Application.cxx;h=ed7260417bc28d8b2a32ca98edd2caf7828c4d61;hb=9b2087aa3c306bc98fbd5ef6344a8ab3367ae498;hp=e45d4a8cdf24950d56b0d38690062d21b45dd272;hpb=3e239e48d056052474ef9f14532a2aae21a9cf39;p=modules%2Fgui.git diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index e45d4a8cd..ed7260417 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -863,3 +863,20 @@ CAM_Application::ModuleShortInfoList CAM_Application::getVersionInfo() } return info; } + +/*! + \brief Abort active operations if there are any + + Iterates through all modules and asks each of them if there are pending operations that cannot be aborted. + + \return \c false if some operation cannot be aborted +*/ +bool CAM_Application::abortAllOperations() +{ + bool aborted = true; + for ( QList::const_iterator it = myModules.begin(); it != myModules.end() && aborted; ++it ) + { + aborted = (*it)->abortAllOperations(); + } + return aborted; +}