-rw-r--r-- | korganizer/mainwindow.cpp | 8 |
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 @@ -1859,25 +1859,31 @@ void MainWindow::exportVCalendar() setCaption(mes); } } } void MainWindow::syncFileRequest() { + if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { + mSyncManager->slotSyncMenu( 999 ); + } save(); } void MainWindow::getFile( bool success ) { if ( ! 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!") ); } void MainWindow::printSel( ) { mView->viewManager()->agendaView()->agenda()->printSelection(); } |