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_RiverBottomOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_RiverBottomOp.cxx
b/src/HYDROGUI/HYDROGUI_RiverBottomOp.cxx
index 0506f1d1976d243c9d0dd2cc27a3bd33aa2b4ad5..aeaadfb52176fe0d4045d14a5340af61f9b7ea88 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_RiverBottomOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_RiverBottomOp.cxx
@@
-56,9
+56,12
@@
void HYDROGUI_RiverBottomOp::startOperation()
{
HYDROGUI_Operation::startOperation();
{
HYDROGUI_Operation::startOperation();
- HYDROGUI_RiverBottomDlg* aPanel = ::qobject_cast<HYDROGUI_RiverBottomDlg*>( inputPanel() );
+ if ( isApplyAndClose() )
+ {
+ HYDROGUI_RiverBottomDlg* aPanel = ::qobject_cast<HYDROGUI_RiverBottomDlg*>( inputPanel() );
- aPanel->reset();
+ aPanel->reset();
+ }
}
void HYDROGUI_RiverBottomOp::abortOperation()
}
void HYDROGUI_RiverBottomOp::abortOperation()