]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correct error message that study is already active.
authorakl <alexander.kovalev@opencascade.com>
Mon, 22 Sep 2014 13:47:13 +0000 (17:47 +0400)
committerakl <alexander.kovalev@opencascade.com>
Mon, 22 Sep 2014 13:47:13 +0000 (17:47 +0400)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/resources/SalomeApp_msg_en.ts
src/SalomeApp/resources/SalomeApp_msg_fr.ts
src/SalomeApp/resources/SalomeApp_msg_ja.ts

index 8b73674bda29e6102fb168ccb4f72603e6803fa9..18ec97033c91019a014505af320a2404f1dc48ee 100644 (file)
@@ -2119,11 +2119,7 @@ bool SalomeApp_Application::checkExistingDoc() {
     if( aMgr ) {
       std::vector<std::string> List = studyMgr()->GetOpenStudies();
       if( List.size() > 0 ) {
-        int answer = SUIT_MessageBox::question( desktop(), tr( "WRN_WARNING" ), tr( "QUE_ACTIVEDOC_LOAD" ),
-                                                SUIT_MessageBox::Yes | SUIT_MessageBox::No, SUIT_MessageBox::No );
-        if ( answer == SUIT_MessageBox::Yes ) {
-         onLoadDoc();
-       }
+        SUIT_MessageBox::critical( desktop(), tr( "WRN_WARNING" ), tr( "ERR_ACTIVEDOC_LOAD" ));
        result = false;
       }
     }
index ec7ce6a2f496cf7841a00e9f0582febc021afcc3..04c84b1d3bd0a4ff1da96adbd3fac7554c94d3b9 100644 (file)
@@ -13,10 +13,8 @@ Python file must include only letters, digits and underscores and start from let
         <translation>The file %1 does not exist.</translation>
     </message>
     <message>
-        <source>QUE_ACTIVEDOC_LOAD</source>
-        <translation>There is an active study in the session.
-Do you want to load it?
-</translation>
+        <source>ERR_ACTIVEDOC_LOAD</source>
+        <translation>A study is already active in your session, but you are not connected to it. Use the Connect button to load it in the interface.</translation>
     </message>
     <message>
         <source>STUDYCLOSE_DESCRIPTION</source>
index 5aee00d36400370d8df57cee84b5c7339ee8578d..009e0f428a3f79a0f78bb6050181d48a47684372 100755 (executable)
@@ -12,6 +12,10 @@ Un fichier Python ne doit être composé que de lettres, chiffres et tirets bas
         <source>WRN_FILE_NOT_EXIST</source>
         <translation>Le fichier %1 n&apos;existe pas.</translation>
     </message>
+    <message>
+        <source>ERR_ACTIVEDOC_LOAD</source>
+        <translation type="unfinished">A study is already active in your session, but you are not connected to it. Use the Connect button to load it in the interface.</translation>
+    </message>
     <message>
         <source>STUDYCLOSE_DESCRIPTION</source>
         <translation type="unfinished">You already have an active study in your session. It has to be closed before working with another study.</translation>
index f2084990d5c2cdefd7a11cec4c730e649f9ab122..770bc7f8a24ae719255b1c35cb96046f1fe3c489 100644 (file)
@@ -12,8 +12,8 @@
       <translation>ファイル %1 は存在しません。</translation>
     </message>
     <message>
-      <source>QUE_ACTIVEDOC_LOAD</source>
-      <translation>セッションにスタディがあります。読み込みますか?</translation>
+      <source>ERR_ACTIVEDOC_LOAD</source>
+      <translation type="unfinished">A study is already active in your session, but you are not connected to it. Use the Connect button to load it in the interface.</translation>
     </message>
     <message>
       <source>STUDYCLOSE_DESCRIPTION</source>