src/messaging/qfsengine_symbian.cpp
changeset 5 603d3f8b6302
parent 0 876b1a06bc25
--- a/src/messaging/qfsengine_symbian.cpp	Fri Sep 17 08:34:34 2010 +0300
+++ b/src/messaging/qfsengine_symbian.cpp	Mon Oct 04 01:37:06 2010 +0300
@@ -246,8 +246,12 @@
 
 QMessageAccountId CFSEngine::defaultAccount(QMessage::Type type) const
 {
-    // TODO
-    Q_UNUSED(type);
+    TRAPD(err, updateEmailAccountsL());
+    Q_UNUSED(err); 
+    QMessageAccountIdList accountIds = accountsByType(type);
+    if (accountIds.count() > 0)
+        return accountIds.at(0);
+        
     return QMessageAccountId();
 }