At start and upon returning from pause, VibraResource is requested only
if vibration is on. Since vibration can only be changed when paused
(menu is not visible otherwise), this is sufficient.
connect(pResourceSet_,SIGNAL(resourcesDenied()),this,SLOT(resourcesLost()));
pResourceSet_->setAlwaysReply();
- pResourceSet_->acquire();
-
+ if (pVibrateAction_->isChecked()) //ask for the resource only if its used
+ {
+ pResourceSet_->acquire();
+ }
}
autopauseTimer.start(); //Start counting towards autopause
- pResourceSet_->acquire(); //Ask to get the vibration resource back
- }
+
+ if (pVibrateAction_->isChecked())
+ {
+ pResourceSet_->acquire(); //Ask to get the vibration resource back
+ }
+ }
else
{