~ubuntu-branches/ubuntu/karmic/amarok/karmic

« back to all changes in this revision

Viewing changes to src/context/engines/photos/PhotosEngine.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-09-28 20:43:54 UTC
  • mfrom: (1.77.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090928204354-21nwkd4dqlvz3jk3
Tags: 2:2.2.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
bool 
66
66
PhotosEngine::sourceRequestEvent( const QString& name )
67
67
{
 
68
    DEBUG_BLOCK
68
69
    m_requested = true; // someone is asking for data, so we turn ourselves on :)
69
70
    QStringList tokens = name.split( ':' );
70
71
 
86
87
            m_reload = true;
87
88
        }
88
89
    }
89
 
        
 
90
 
 
91
    // we've been notified by the applet to be in state stop <3
 
92
    else if ( tokens.contains( "stopped" ) && tokens.size() > 1 )
 
93
    {
 
94
        if ( tokens.at( 1 ) == QString( "stopped" ) )
 
95
        {
 
96
            removeSource( "photos" );
 
97
            m_reload = true;
 
98
            return false;
 
99
        }
 
100
    }
 
101
    
90
102
    removeAllData( name );
91
103
    setData( name, QVariant() );
92
104
    update();