Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #550: fix crash when myObject is NULL
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_CalculationDlg.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_CalculationDlg.cxx
b/src/HYDROGUI/HYDROGUI_CalculationDlg.cxx
index 49d6188827c69f86837afd2322ef17ba0e9c8110..c23683e9ac1c16eccefef716e6131012acc106fe 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_CalculationDlg.cxx
+++ b/
src/HYDROGUI/HYDROGUI_CalculationDlg.cxx
@@
-738,5
+738,10
@@
void HYDROGUI_CalculationDlg::setRules( const HYDROData_ListOfRules& theRules )
*/
void HYDROGUI_CalculationDlg::onOrderChanged()
{
*/
void HYDROGUI_CalculationDlg::onOrderChanged()
{
- myPriorityWidget->setObjects( getGeometryObjects() );
+ bool isConfirmed = true;
+ emit orderChanged( isConfirmed );
+ if( isConfirmed )
+ myPriorityWidget->setObjects( getGeometryObjects() );
+ else
+ myGeomObjects->undoLastMove();
}
}