profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileToneHandler.cpp
branchRCL_3
changeset 14 bc161388e3ce
parent 12 b79ee333c41d
child 18 232e127a1fe4
--- a/profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileToneHandler.cpp	Mon Mar 15 12:40:33 2010 +0200
+++ b/profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileToneHandler.cpp	Wed Mar 31 21:31:25 2010 +0300
@@ -463,15 +463,15 @@
 		}
 		
 	// Check whether file is supported by MMF
-    TBuf8<KMaxDataTypeLength> tempDataType;
-    tempDataType.Copy( dataType );
-
-    if( !ProfileMmfInfoUtility::IsMimeTypeSupportedL( tempDataType ) )
-    	{
-    	// File is not supported by MMF
-    	return KErrNotSupported;
-    	}
-
+	TBuf8<KMaxDataTypeLength> tempDataType;
+	tempDataType.Copy( dataType );
+    if (!ProfileMmfInfoUtility::IsMimeTypeSupportedL(tempDataType)
+			&& !ProfileMmfInfoUtility::IsHeaderDataSupportedL(aFileName))
+		{
+		// File is not supported by MMF
+		return KErrNotSupported;
+		}
+    
 	// Operator requirement. Check if the tones of this data type are blocked:
     if( iProfilesFeatures->IsBlockedType( dataType ) ||
         iProfilesFeatures->IsExcludedType( dataType ) )