Salome HOME
Profile object creation.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_GeoreferencementOp.cxx
index 80a0373e255dfafe3e89d7138e1be07834983bf9..15595b6050a611b08f682823a8b8b6bf5499cb39 100644 (file)
@@ -129,13 +129,11 @@ void HYDROGUI_GeoreferencementOp::onModeActivated( const int theActualMode )
   if ( !store( anErrorMsg ) ) {
     aPanel->setMode( theActualMode == HYDROGUI_GeoreferencementDlg::AllProfiles ?
                      HYDROGUI_GeoreferencementDlg::SelectedProfiles :
-                     HYDROGUI_GeoreferencementDlg::AllProfiles );
+                     HYDROGUI_GeoreferencementDlg::AllProfiles);
 
-    if ( anErrorMsg.isEmpty() ) {
-      anErrorMsg = tr( "INSUFFICIENT_INPUT_DATA" );
-    }
+    anErrorMsg.append( "\n" + tr( "INPUT_VALID_DATA" ) );
     SUIT_MessageBox::critical( module()->getApp()->desktop(),
-                               tr( "ERROR" ),
+                               tr( "INSUFFICIENT_INPUT_DATA" ),
                                anErrorMsg );
     return;
   }