summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp8
1 files changed, 7 insertions, 1 deletions
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!") );
}