qtmobility/src/messaging/qmessageaccountid_symbian.cpp
changeset 8 71781823f776
parent 4 90517678cc4f
child 11 06b8e2af4411
--- a/qtmobility/src/messaging/qmessageaccountid_symbian.cpp	Fri May 14 16:41:33 2010 +0300
+++ b/qtmobility/src/messaging/qmessageaccountid_symbian.cpp	Thu May 27 13:42:11 2010 +0300
@@ -41,6 +41,7 @@
 #include "qmessageaccountid.h"
 #include "qmessageaccountid_p.h"
 #include <qhash.h>
+#include <messagingutil_p.h>
 
 QTM_BEGIN_NAMESPACE
 
@@ -91,7 +92,7 @@
             d_ptr = 0;
         }
     }
-    
+
     return *this;
 }
 
@@ -100,12 +101,12 @@
     long left = 0;
     long right = 0;
     if (d_ptr) {
-        left = d_ptr->_id.toLong();
+        left = SymbianHelpers::stripIdPrefix(d_ptr->_id).toLong();
     }
     if (other.d_ptr) {
-        right = other.d_ptr->_id.toLong();
+        right = SymbianHelpers::stripIdPrefix(other.d_ptr->_id).toLong();
     }
-    
+
     return (left < right);
 }