messagingapp/msgui/unifiedviewer/src/univiewerutils.cpp
changeset 52 12db4185673b
parent 43 35b64624a9e7
--- a/messagingapp/msgui/unifiedviewer/src/univiewerutils.cpp	Tue Jul 06 14:12:40 2010 +0300
+++ b/messagingapp/msgui/unifiedviewer/src/univiewerutils.cpp	Wed Aug 18 09:45:25 2010 +0300
@@ -57,13 +57,12 @@
 //---------------------------------------------------------------
 void UniViewerUtils::launchContentViewer(const QString &mimeType, const QString &filePath)
 {
-    if (mimeType.contains(IMAGE_MIMETYPE) || mimeType.contains(AUDIO_MIMETYPE) || 
-        mimeType.contains(VIDEO_MIMETYPE)) {
+    if (mimeType.contains(VCARD_MIMETYPE, Qt::CaseInsensitive)) {
+        MsgContactsUtil::launchVCardViewer(filePath);
+    }
+    else {
         launchViaSharableFile(filePath);
     }
-    else if (mimeType.contains(VCARD_MIMETYPE, Qt::CaseInsensitive)) {
-        MsgContactsUtil::launchVCardViewer(filePath);
-    }
 }
 
 //---------------------------------------------------------------