fmt = "JPEG";
QApplication::setOverrideCursor( Qt::waitCursor );
- bool res = img.save( fileName, fmt.latin1() );
+ img.save( fileName, fmt.latin1() );
QApplication::restoreOverrideCursor();
}
myPickingAction->addTo( myPtsToolBar );
connect(myPickingAction, SIGNAL(toggled(bool)), this, SLOT(OnSelectionModeSwitch(bool)));
- myPickingDlg = new VVTK_PickingDlg( this, "PickingDlg" );
- myPickingDlg->SetAction( myPickingAction );
+ myPickingDlg = new VVTK_PickingDlg( myPickingAction, this, "PickingDlg" );
// Plane/Sphere Segmentation
aPixmap = theResourceMgr->loadPixmap("VISU",tr("ICON_VVTK_PLANE_SEGMENTATION_SWITCH"));
VVTK_MainWindow1
::OnSelectionModeSwitch(bool theIsSelectionOn)
{
+ if ( theIsSelectionOn && !isVisible() )
+ return;
+
Selection_Mode aSelectionMode = SelectionMode();
if(theIsSelectionOn && aSelectionMode != GaussPointSelection)
SetSelectionMode(GaussPointSelection);