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
{