summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/backend
authorzecke <zecke>2003-02-15 13:55:04 (UTC)
committer zecke <zecke>2003-02-15 13:55:04 (UTC)
commit4049351d6bd48c8e5866f3bc047f567dfe4b35d6 (patch) (side-by-side diff)
tree738c8375b87976e6b905b42d404f78b6cc48966f /libopie2/opiepim/backend
parentb50692ba650418aa06cbd2662b4ff698c7d3f961 (diff)
downloadopie-4049351d6bd48c8e5866f3bc047f567dfe4b35d6.zip
opie-4049351d6bd48c8e5866f3bc047f567dfe4b35d6.tar.gz
opie-4049351d6bd48c8e5866f3bc047f567dfe4b35d6.tar.bz2
clear before reloading
Diffstat (limited to 'libopie2/opiepim/backend') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/backend/otodoaccessxml.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/otodoaccessxml.cpp b/libopie2/opiepim/backend/otodoaccessxml.cpp
index 21f93a0..c3416cb 100644
--- a/libopie2/opiepim/backend/otodoaccessxml.cpp
+++ b/libopie2/opiepim/backend/otodoaccessxml.cpp
@@ -161,12 +161,13 @@ bool OTodoAccessXML::load() {
munmap(map_addr, attribut.st_size );
qWarning("counts %d records loaded!", m_events.count() );
return true;
}
bool OTodoAccessXML::reload() {
+ m_events.clear();
return load();
}
bool OTodoAccessXML::save() {
// qWarning("saving");
if (!m_opened || !m_changed ) {
// qWarning("not saving");