Salome HOME
Cancel operation work correctly in the case of empty title of the document on the...
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / ImportDocumentAction.java
index 70b76234b13b363c7d32adeedb291d9a1a2b69ef..77713cbf5a4e1d1e42c5d5ef121d62ff2bccc5f0 100644 (file)
@@ -212,9 +212,7 @@ public class ImportDocumentAction extends BaseUploadDocumentAction {
                initializationScreenContext(Constants.STUDY_MENU, Constants.STUDY_MENU,
                                Constants.TRUE);
 
-               if (_action == ToDo.cancel) {
-                       res = "cancel";
-               } else if (_documentType == 0) {
+               if (_documentType == 0) {
                        setErrorCode("message.error.import.type");
 
                        initializationFullScreenContext(Constants.STUDY_MENU,