From 483c6ac49ea1764bdd154e33e220b7945a6ab754 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 12 Sep 2004 22:05:14 +0000 Subject: fix for Z --- (limited to 'libkcal/phoneformat.cpp') diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index 99d6a06..c67dc6a 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp @@ -384,7 +384,11 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal) #else fileName = "/tmp/kdepimtemp.vcs"; #endif +#ifdef DESKTOP_VERSION QString command ="./kammu --backup " + fileName + " -yes" ; +#else + QString command ="kammu --backup " + fileName + " -yes" ; +#endif int ret = system ( command.latin1() ); if ( ret != 0 ) { qDebug("Error::command returned %d", ret); @@ -615,7 +619,11 @@ bool PhoneFormat::save( Calendar *calendar) if ( ! vfsave.save( calendar, fileName ) ) return false; // 4 call kammu +#ifdef DESKTOP_VERSION QString command ="./kammu --restore " + fileName ; +#else + QString command ="kammu --restore " + fileName ; +#endif int ret; while ( (ret = system ( command.latin1())) != 0 ) { qDebug("Error S::command returned %d. asking users", ret); -- cgit v0.9.0.2