don't try to stop polling if we're currently not, BUG: 258170

svn path=/trunk/KDE/kdebase/workspace/; revision=1203503
This commit is contained in:
Thomas Lübking 2010-12-04 12:04:05 +00:00
parent 48447a3d26
commit b3e01ab0f7

View file

@ -290,8 +290,9 @@ void StartupFeedbackEffect::start( const QString& icon )
{
if( m_type == NoFeedback )
return;
if ( !m_active )
effects->startMousePolling();
m_active = true;
effects->startMousePolling();
QPixmap iconPixmap = KIconLoader::global()->loadIcon( icon, KIconLoader::Small, 0,
KIconLoader::DefaultState, QStringList(), 0, true ); // return null pixmap if not found
if( iconPixmap.isNull() )
@ -302,8 +303,9 @@ void StartupFeedbackEffect::start( const QString& icon )
void StartupFeedbackEffect::stop()
{
if ( m_active )
effects->stopMousePolling();
m_active = false;
effects->stopMousePolling();
switch( m_type )
{
case BouncingFeedback: