Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b2833ae
)
Fix for bug IPAL9248(3.0.0: SIGSEGV after calling operation with group if OCC Viewer...
author
mzn
<mzn@opencascade.com>
Thu, 23 Jun 2005 08:58:59 +0000
(08:58 +0000)
committer
mzn
<mzn@opencascade.com>
Thu, 23 Jun 2005 08:58:59 +0000
(08:58 +0000)
src/SMESHGUI/SMESHGUI.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI.cxx
b/src/SMESHGUI/SMESHGUI.cxx
index 2c49e211ecc167a32529d775be8f98a6aa6614eb..b44a2193acf4be3f0b7845bd687697a7e745d451 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI.cxx
+++ b/
src/SMESHGUI/SMESHGUI.cxx
@@
-1616,6
+1616,13
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
case 803: // EDIT GROUP
{
case 803: // EDIT GROUP
{
+ if ( !vtkwnd )
+ {
+ SUIT_MessageBox::warn1( desktop(), tr( "SMESH_WRN_WARNING" ),
+ tr( "NOT_A_VTK_VIEWER" ),tr( "SMESH_BUT_OK" ) );
+ break;
+ }
+
if(checkLock(aStudy)) break;
EmitSignalDeactivateDialog();
if(checkLock(aStudy)) break;
EmitSignalDeactivateDialog();
@@
-1668,6
+1675,13
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
case 811: // Intersect groups
case 812: // Cut groups
{
case 811: // Intersect groups
case 812: // Cut groups
{
+ if ( !vtkwnd )
+ {
+ SUIT_MessageBox::warn1( desktop(), tr( "SMESH_WRN_WARNING" ),
+ tr( "NOT_A_VTK_VIEWER" ),tr( "SMESH_BUT_OK" ) );
+ break;
+ }
+
if ( checkLock( aStudy ) )
break;
if ( checkLock( aStudy ) )
break;
@@
-1684,6
+1698,13
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
case 813: // Delete groups with their contents
{
case 813: // Delete groups with their contents
{
+ if ( !vtkwnd )
+ {
+ SUIT_MessageBox::warn1( desktop(), tr( "SMESH_WRN_WARNING" ),
+ tr( "NOT_A_VTK_VIEWER" ),tr( "SMESH_BUT_OK" ) );
+ break;
+ }
+
if ( checkLock( aStudy ) )
break;
if ( checkLock( aStudy ) )
break;