From: apo Date: Tue, 5 Jun 2007 05:17:36 +0000 (+0000) Subject: To remove duplicated code X-Git-Tag: Before_Merging_With_Windows_20jun07~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a0fd7120a3dc9ce228b475048911ccd67ffd209;p=modules%2Fvisu.git To remove duplicated code --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 4f90b86e..1c18ca34 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -838,15 +838,6 @@ void SetupDlg::onPreferencesDlg() return; } - if(!aData.myNbFrames || !aData.myPrs[0]){ - QApplication::restoreOverrideCursor(); - SUIT_MessageBox::warn1(this, - tr("ERROR"), - VisuGUI_TimeAnimationDlg::tr("MSG_NO_ANIMATIONDATA"), - tr("&OK")); - return; - } - int aType = myComboId2TypeId[myTypeCombo->currentItem()]; switch (aType) { case TSCALARMAP_ITEM: //Scalar Map