qtmobility/src/messaging/qmessagefolderid_win.cpp
changeset 5 453da2cfceef
parent 1 2b40d63a9c3d
child 8 71781823f776
--- a/qtmobility/src/messaging/qmessagefolderid_win.cpp	Mon May 03 13:18:40 2010 +0300
+++ b/qtmobility/src/messaging/qmessagefolderid_win.cpp	Fri May 14 16:41:33 2010 +0300
@@ -108,7 +108,7 @@
 QMessageFolderId::QMessageFolderId(const QString& id)
     : d_ptr(new QMessageFolderIdPrivate(this))
 {
-    QDataStream idStream(QByteArray::fromBase64(id.toLatin1()));
+	QDataStream idStream(QByteArray::fromBase64(WinHelpers::stripIdPrefix(id).toLatin1()));
     d_ptr->_valid = true;
 #ifdef _WIN32_WCE
     idStream >> d_ptr->_entryId;
@@ -201,7 +201,7 @@
     if (d_ptr->_entryId.count())
         encodedIdStream << d_ptr->_entryId;
 #endif
-    return encodedId.toBase64();
+	return WinHelpers::addIdPrefix(encodedId.toBase64());
 }
 
 bool QMessageFolderId::isValid() const