]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Disable Apply when start and finish profiles are the same.
authorstv <stv@opencascade.com>
Tue, 31 Mar 2015 10:10:45 +0000 (13:10 +0300)
committerstv <stv@opencascade.com>
Tue, 31 Mar 2015 10:10:45 +0000 (13:10 +0300)
src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx

index 42351f79adf0aaf4493a63b4398f78f05c4a921e..ff381785ce003a22eaefae68dff434b8e38fd4ed 100644 (file)
@@ -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