diff --git a/samples/qt/Common/src/View.cxx b/samples/qt/Common/src/View.cxx index 4c45d0ba7b..0a8a56f685 100755 --- a/samples/qt/Common/src/View.cxx +++ b/samples/qt/Common/src/View.cxx @@ -157,12 +157,7 @@ View::View( Handle(AIS_InteractiveContext) theContext, QWidget* parent ) myCurrentMode = CurAction3d_Nothing; myHlrModeIsOn = Standard_False; setMouseTracking( true ); - - if( myFirst ) - { - init(); - myFirst = false; - } + initViewActions(); initCursors();