summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--kabc/addressbook.cpp1
-rw-r--r--kaddressbook/kabcore.cpp3
-rw-r--r--libkdepim/phoneaccess.cpp6
3 files changed, 8 insertions, 2 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp
index 1a06956..1050f55 100644
--- a/kabc/addressbook.cpp
+++ b/kabc/addressbook.cpp
@@ -42,2 +42,3 @@ $Id$
#include <qfile.h>
+#include <qregexp.h>
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index efcd492..7ec3fca 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -2811,3 +2811,4 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode)
qDebug("Saving remote AB ");
- abLocal.saveAB();
+ if ( ! abLocal.saveAB())
+ qDebug("Error writing back AB to file ");
if ( isXML ) {
diff --git a/libkdepim/phoneaccess.cpp b/libkdepim/phoneaccess.cpp
index 357cd39..fe914dd 100644
--- a/libkdepim/phoneaccess.cpp
+++ b/libkdepim/phoneaccess.cpp
@@ -133,3 +133,7 @@ bool PhoneAccess::writeToPhone( QString fileName)
#ifdef DESKTOP_VERSION
+#ifdef _WIN32_
+ QString command ="kammu --restore " + fileName ;
+#else
QString command ="./kammu --restore " + fileName ;
+#endif
#else
@@ -139,3 +143,3 @@ bool PhoneAccess::writeToPhone( QString fileName)
while ( (ret = system ( command.latin1())) != 0 ) {
- qDebug("Error S::command returned %d. asking users", ret);
+ qDebug("Error S::command returned %d.", ret);
int retval = KMessageBox::warningContinueCancel(0,