summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
authorzautrix <zautrix>2004-10-20 16:27:05 (UTC)
committer zautrix <zautrix>2004-10-20 16:27:05 (UTC)
commit46ea2933c9f67e77fb5c6cd93237efc755f28b62 (patch) (side-by-side diff)
tree8025e9caceb2f62cd5b1d4b78b359545d38b39c5 /korganizer/mainwindow.cpp
parent5cf3c1bce58a6487af166e637e54571e98156fd0 (diff)
downloadkdepimpi-46ea2933c9f67e77fb5c6cd93237efc755f28b62.zip
kdepimpi-46ea2933c9f67e77fb5c6cd93237efc755f28b62.tar.gz
kdepimpi-46ea2933c9f67e77fb5c6cd93237efc755f28b62.tar.bz2
made KDE sync perfect
Diffstat (limited to 'korganizer/mainwindow.cpp') (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!") );
}