summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 7ce0251..45775c5 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -1983,6 +1983,7 @@ void MainWindow::save()
return;
}
if ( mSyncManager->blockSave() ) {
+ slotModifiedChanged( true );
return;
}
mSyncManager->setBlockSave(true);
@@ -2559,6 +2560,11 @@ QString MainWindow::sentSyncFile()
void MainWindow::syncFileRequest()
{
+ while ( mSyncManager->blockSave() ) {
+ qApp->processEvents();
+ }
+ mSyncManager->setBlockSave(true);
+
if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) {
mSyncManager->slotSyncMenu( 999 );
}
@@ -2566,6 +2572,7 @@ void MainWindow::syncFileRequest()
setCaption(i18n("Saving Data to temp file ..." ));
mView->saveCalendar( sentSyncFile() );
setCaption(i18n("Data saved to temp file!" ));
+ mSyncManager->setBlockSave( false );
}
void MainWindow::getFile( bool success )