From 66cb51e6562eb903caa4781801d52f36c18667af Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 31 Mar 2015 13:10:45 +0300 Subject: [PATCH] Disable Apply when start and finish profiles are the same. --- src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2