author | zautrix <zautrix> | 2004-10-14 10:19:14 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-14 10:19:14 (UTC) |
commit | dddcb44c8428e9054a91eea0c7483ee88ee03452 (patch) (side-by-side diff) | |
tree | 0c6b26192c70f8cfccd00f527f56a39109a11f2d | |
parent | 3d79ab275374292196c7d032ffd2e321841c8cb0 (diff) | |
download | kdepimpi-dddcb44c8428e9054a91eea0c7483ee88ee03452.zip kdepimpi-dddcb44c8428e9054a91eea0c7483ee88ee03452.tar.gz kdepimpi-dddcb44c8428e9054a91eea0c7483ee88ee03452.tar.bz2 |
phone calendar fixes
-rw-r--r-- | libkcal/phoneformat.cpp | 7 | ||||
-rw-r--r-- | libkdepim/phoneaccess.cpp | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index 3555dc6..281434e 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp @@ -297,7 +297,5 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal) #endif QString command; - int ret = PhoneAccess::readFromPhone( fileName ); - if ( ret != 0 ) { - qDebug("Error::command returned %d", ret); + if ( ! PhoneAccess::readFromPhone( fileName )) { return false; } @@ -488,6 +486,9 @@ bool PhoneFormat::writeToPhone( Calendar * calendar) VCalFormat vfsave; vfsave.setLocalTime ( true ); + QString id = calendar->timeZoneId(); + calendar->setLocalTime(); if ( ! vfsave.save( calendar, fileName ) ) return false; + calendar->setTimeZoneId( id ); return PhoneAccess::writeToPhone( fileName ); } diff --git a/libkdepim/phoneaccess.cpp b/libkdepim/phoneaccess.cpp index 5fafa1f..8298aa6 100644 --- a/libkdepim/phoneaccess.cpp +++ b/libkdepim/phoneaccess.cpp @@ -164,5 +164,5 @@ bool PhoneAccess::readFromPhone( QString fileName) int ret; while ( (ret = system ( command.latin1())) != 0 ) { - qDebug("Error S::command returned %d.", ret); + qDebug("Error reading from phone:Command returned %d", ret); int retval = KMessageBox::warningContinueCancel(0, i18n("Error accessing device!\nPlease turn on connection\nand retry!"),i18n("KDE/Pim phone access"),i18n("Retry"),i18n("Cancel")); |