CheckGroup->layout()->setMargin( 0 );
QGridLayout* CheckGroupLayout = new QGridLayout( CheckGroup->layout() );
- myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), this);
+ myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), CheckGroup);
myPreviewCheck->setChecked(false);
CheckGroupLayout->addWidget(myPreviewCheck , 0, 0 );
if(!check()) return;
+ if ( myBusy ) return;
+
+ myBusy = true;
+
int sbCol,sbLab;
sbCol = getNbColors();
sbLab = getNbLabels();
aScalarBarActor->Modified();
VISU::GetViewWindow()->AddActor(myPreviewActor);
+
+ myBusy = false;
}
/*! Deleting preview scalar bar
*/
void VisuGUI_ScalarBarPane::deleteScalarBar()
{
+ if ( myBusy ) return;
+
if (myPreviewActor == 0) return;
if (SVTK_ViewWindow* vf = VISU::GetViewWindow()){
vf->RemoveActor(myPreviewActor);