From: stv Date: Tue, 31 Mar 2015 10:10:45 +0000 (+0300) Subject: Disable Apply when start and finish profiles are the same. X-Git-Tag: BR_hydro_v_1_0_5~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=66cb51e6562eb903caa4781801d52f36c18667af;p=modules%2Fhydro.git Disable Apply when start and finish profiles are the same. --- diff --git a/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx index 42351f79..ff381785 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx @@ -249,7 +249,7 @@ void HYDROGUI_ProfileInterpolateDlg::onProfileChanged( const QString& ) void HYDROGUI_ProfileInterpolateDlg::updateState() { - setApplyEnabled( !river().isEmpty() && !profileStart().isEmpty() && !profileFinish().isEmpty() ); + setApplyEnabled( !river().isEmpty() && !profileStart().isEmpty() && !profileFinish().isEmpty() && profileStart() != profileFinish() ); } HYDROGUI_ObjComboBox* HYDROGUI_ProfileInterpolateDlg::activeProfile() const