From 46ea2933c9f67e77fb5c6cd93237efc755f28b62 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 20 Oct 2004 16:27:05 +0000 Subject: made KDE sync perfect --- (limited to 'korganizer') diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 63484d6..e3dad94 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1864,6 +1864,9 @@ void MainWindow::exportVCalendar() void MainWindow::syncFileRequest() { + if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { + mSyncManager->slotSyncMenu( 999 ); + } save(); } void MainWindow::getFile( bool success ) @@ -1872,7 +1875,10 @@ void MainWindow::getFile( bool success ) setCaption( i18n("Error receiving file. Nothing changed!") ); return; } - mView->openCalendar( defaultFileName() ); + mView->openCalendar( defaultFileName() ); + if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { + mSyncManager->slotSyncMenu( 999 ); + } setCaption( i18n("Pi-Sync successful!") ); } -- cgit v0.9.0.2