summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2004-10-17 20:33:08 (UTC)
committer zautrix <zautrix>2004-10-17 20:33:08 (UTC)
commit50470fdeb0ed62f05ff6780607cc30a8e84ef5b1 (patch) (side-by-side diff)
tree87fbffa1db9d979dbe9c2e018cd2bdc5d833823f /libkdepim
parent4220d587eb43d4117e5d5a8a8f0cb6e8381b5fbe (diff)
downloadkdepimpi-50470fdeb0ed62f05ff6780607cc30a8e84ef5b1.zip
kdepimpi-50470fdeb0ed62f05ff6780607cc30a8e84ef5b1.tar.gz
kdepimpi-50470fdeb0ed62f05ff6780607cc30a8e84ef5b1.tar.bz2
compile fixes
Diffstat (limited to 'libkdepim') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index 8851097..40d8e47 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -760,49 +760,53 @@ void KSyncManager::confSync()
if ( ! sp ) {
sp = new KSyncPrefsDialog( mParent, "syncprefs", true );
}
sp->usrReadConfig();
#ifndef DESKTOP_VERSION
sp->showMaximized();
#else
sp->show();
#endif
sp->exec();
mSyncProfileNames = sp->getSyncProfileNames();
mLocalMachineName = sp->getLocalMachineName ();
QTimer::singleShot ( 1, this, SLOT ( fillSyncMenu() ) );
}
void KSyncManager::syncKDE()
{
emit save();
switch(mTargetApp)
{
case (KAPI):
break;
case (KOPI):
{
+#ifdef DESKTOP_VERSION
QString command = qApp->applicationDirPath () + "/kdecaldump";
+#else
+ QString command = "kdecaldump";
+#endif
if ( ! QFile::exists ( command ) )
command = "kdecaldump";
QString fileName = QDir::homeDirPath ()+"/.kdecalendardump.ics";
system ( command.latin1());
if ( syncWithFile( fileName,true ) ) {
if ( mWriteBackFile ) {
command += " --read";
system ( command.latin1());
}
}
}
break;
case (PWMPI):
break;
default:
qDebug("KSyncManager::slotSyncMenu: invalid apptype selected");
break;
}
}
void KSyncManager::syncSharp()