-rw-r--r-- | libopie/pim/opimrecord.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libopie/pim/opimrecord.cpp b/libopie/pim/opimrecord.cpp index d8f73c7..e510f4e 100644 --- a/libopie/pim/opimrecord.cpp +++ b/libopie/pim/opimrecord.cpp @@ -6,5 +6,2 @@ OPimRecord::OPimRecord( int uid ) setUid( uid ); - /* assign a new UID */ - if ( uid == 1 ) - assignUid(); } @@ -106 +103,9 @@ QString OPimRecord::crossToString()const { } +/* if uid = 1 assign a new one */ +void OPimRecord::setUid( int uid ) { + + if ( uid == 1) + uid = uidGen().generate(); + + Qtopia::Record::setUid( uid ); +}; |