From: mzn Date: Thu, 5 Dec 2013 10:24:46 +0000 (+0000) Subject: Do not take into account selected objects which are not profiles. X-Git-Tag: BR_hydro_v_0_4~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=240521de7f31918d82ca00f0a3480a3d877a97c6;p=modules%2Fhydro.git Do not take into account selected objects which are not profiles. --- diff --git a/src/HYDROGUI/HYDROGUI_StreamOp.cxx b/src/HYDROGUI/HYDROGUI_StreamOp.cxx index ba889992..f23b1c03 100755 --- a/src/HYDROGUI/HYDROGUI_StreamOp.cxx +++ b/src/HYDROGUI/HYDROGUI_StreamOp.cxx @@ -273,7 +273,8 @@ void HYDROGUI_StreamOp::onAddProfiles() } // Show message box with the ignored profiles - if ( aVerifiedProfiles.Length() < aSelectedProfiles.Length() ) { + if ( !anInvalidProfiles.isEmpty() || !anExistingProfiles.isEmpty() || + !aHasNoIntersectionProfiles.isEmpty() ) { QString aMessage = tr( "IGNORED_PROFILES" ); if ( !anInvalidProfiles.isEmpty() ) { aMessage.append( "\n\n" );