mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp
--- a/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp Fri Feb 19 22:48:30 2010 +0200
+++ b/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/src/mpxdbhandler.cpp Fri Mar 12 15:42:25 2010 +0200
@@ -1402,18 +1402,21 @@
void CMPXDbHandler::MtpStartL()
{
MPX_DEBUG1("-->CMPXDbHandler::MtpStartL");
- iMtpInUse = ETrue;
- iOpOnDbCount = 0;
-
-#ifdef __RAMDISK_PERF_ENABLE
- TRAPD(err, iDbManager->CopyDBsToRamL(iMtpInUse));
- if ( err != KErrNone )
- {
- MPX_DEBUG2("CMPXDbHandler::MtpStartL error=%d", err);
- }
-#endif //__RAMDISK_PERF_ENABLE
-
- iDbManager->BeginL();
+ if(!iMtpInUse)
+ {
+ iMtpInUse = ETrue;
+ iOpOnDbCount = 0;
+
+ #ifdef __RAMDISK_PERF_ENABLE
+ TRAPD(err, iDbManager->CopyDBsToRamL(iMtpInUse));
+ if ( err != KErrNone )
+ {
+ MPX_DEBUG2("CMPXDbHandler::MtpStartL error=%d", err);
+ }
+ #endif //__RAMDISK_PERF_ENABLE
+
+ iDbManager->BeginL();
+ }
MPX_DEBUG1("<--CMPXDbHandler::MtpStartL");
}
@@ -1815,6 +1818,11 @@
{
visibleChange = CMPXDbActiveTask::EAllVisible;
}
+ if ( aMedia.ValueTObjectL<TInt>( KMPXMediaMusicAlbumArtChanged )== 1 )
+ {
+ ( const_cast<CMPXMedia*>( &aMedia )
+ )->SetTObjectValueL<TInt>( KMPXMediaMusicAlbumArtChanged, 0 );
+ }
return visibleChange;
}