-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 @@ -5,7 +5,4 @@ OPimRecord::OPimRecord( int uid ) setUid( uid ); - /* assign a new UID */ - if ( uid == 1 ) - assignUid(); } OPimRecord::~OPimRecord() { @@ -105,2 +102,10 @@ QString OPimRecord::crossToString()const { return str; } +/* if uid = 1 assign a new one */ +void OPimRecord::setUid( int uid ) { + + if ( uid == 1) + uid = uidGen().generate(); + + Qtopia::Record::setUid( uid ); +}; |