if(MYDEBUG) MESSAGE("OnErasePrs");
QApplication::setOverrideCursor(Qt::waitCursor);
+
+ SVTK_ViewWindow* vw = GetViewWindow(this);
+ if (vw) vw->unHighlightAll();
+
SALOME_ListIO aList;
SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this);
mgr->selectedObjects(aList);
CORBA::Object_var anObject = GetSelectedObj( GetAppStudy(this), anIO->getEntry() );
ErasePrs(this, anObject, false);
}
- if (SVTK_ViewWindow* vw = GetViewWindow( this ))
- vw->Repaint();
+
+ if (vw) vw->Repaint();
+
QApplication::restoreOverrideCursor();
}