author | eilers <eilers> | 2003-12-22 11:41:39 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-12-22 11:41:39 (UTC) |
commit | 5be4ab495ca232d64305b2634e3bca074f542539 (patch) (side-by-side diff) | |
tree | 6255155e18ed63b52505aaa794ed45332bac8cec | |
parent | 8d91c030bd4cb8ef296eb25fee9394ca4a8319f8 (diff) | |
download | opie-5be4ab495ca232d64305b2634e3bca074f542539.zip opie-5be4ab495ca232d64305b2634e3bca074f542539.tar.gz opie-5be4ab495ca232d64305b2634e3bca074f542539.tar.bz2 |
Fixing stupid bug, found by sourcode review..
-rw-r--r-- | libopie/pim/odatebookaccessbackend_sql.cpp | 11 | ||||
-rw-r--r-- | libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/libopie/pim/odatebookaccessbackend_sql.cpp b/libopie/pim/odatebookaccessbackend_sql.cpp index e893b38..756f405 100644 --- a/libopie/pim/odatebookaccessbackend_sql.cpp +++ b/libopie/pim/odatebookaccessbackend_sql.cpp @@ -15,4 +15,7 @@ * History: * $Log$ + * Revision 1.3 2003/12/22 11:41:39 eilers + * Fixing stupid bug, found by sourcode review.. + * * Revision 1.2 2003/12/22 10:19:26 eilers * Finishing implementation of sql-backend for datebook. But I have to @@ -207,4 +210,5 @@ OEvent ODateBookAccessBackend_SQL::find( int uid ) const{ } +// FIXME: Speed up update of uid's.. bool ODateBookAccessBackend_SQL::add( const OEvent& ev ) { @@ -246,7 +250,11 @@ bool ODateBookAccessBackend_SQL::add( const OEvent& ev ) } + // Update list of uid's + update(); + return true; } +// FIXME: Speed up update of uid's.. bool ODateBookAccessBackend_SQL::remove( int uid ) { @@ -262,4 +270,7 @@ bool ODateBookAccessBackend_SQL::remove( int uid ) } + // Update list of uid's + update(); + return true; } diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp b/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp index e893b38..756f405 100644 --- a/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp +++ b/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp @@ -15,4 +15,7 @@ * History: * $Log$ + * Revision 1.3 2003/12/22 11:41:39 eilers + * Fixing stupid bug, found by sourcode review.. + * * Revision 1.2 2003/12/22 10:19:26 eilers * Finishing implementation of sql-backend for datebook. But I have to @@ -207,4 +210,5 @@ OEvent ODateBookAccessBackend_SQL::find( int uid ) const{ } +// FIXME: Speed up update of uid's.. bool ODateBookAccessBackend_SQL::add( const OEvent& ev ) { @@ -246,7 +250,11 @@ bool ODateBookAccessBackend_SQL::add( const OEvent& ev ) } + // Update list of uid's + update(); + return true; } +// FIXME: Speed up update of uid's.. bool ODateBookAccessBackend_SQL::remove( int uid ) { @@ -262,4 +270,7 @@ bool ODateBookAccessBackend_SQL::remove( int uid ) } + // Update list of uid's + update(); + return true; } |