From 66b00525256255290dfcd9d48ebe1539f15b8dce Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 22 Feb 2003 16:12:49 +0000 Subject: Remove some testing code --- diff --git a/libopie/pim/odatebookaccessbackend_xml.cpp b/libopie/pim/odatebookaccessbackend_xml.cpp index 5239d84..bc51996 100644 --- a/libopie/pim/odatebookaccessbackend_xml.cpp +++ b/libopie/pim/odatebookaccessbackend_xml.cpp @@ -151,8 +151,7 @@ bool ODateBookAccessBackend_XML::reload() { return load(); } bool ODateBookAccessBackend_XML::save() { - qWarning("going to save now"); -// if (!m_changed) return true; + if (!m_changed) return true; int total_written; QString strFileNew = m_name + ".new"; @@ -192,7 +191,6 @@ bool ODateBookAccessBackend_XML::save() { } f.close(); - exit(0); if ( ::rename( strFileNew, m_name ) < 0 ) { QFile::remove( strFileNew ); return false; diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp b/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp index 5239d84..bc51996 100644 --- a/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp +++ b/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp @@ -151,8 +151,7 @@ bool ODateBookAccessBackend_XML::reload() { return load(); } bool ODateBookAccessBackend_XML::save() { - qWarning("going to save now"); -// if (!m_changed) return true; + if (!m_changed) return true; int total_written; QString strFileNew = m_name + ".new"; @@ -192,7 +191,6 @@ bool ODateBookAccessBackend_XML::save() { } f.close(); - exit(0); if ( ::rename( strFileNew, m_name ) < 0 ) { QFile::remove( strFileNew ); return false; -- cgit v0.9.0.2