summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
authorzautrix <zautrix>2005-07-26 15:43:00 (UTC)
committer zautrix <zautrix>2005-07-26 15:43:00 (UTC)
commitd0fe94073aa3209532952c944b41bccfb4341a8d (patch) (side-by-side diff)
treeabab8e118a2661847c65715b9c68e5d3b9ac97e6 /korganizer/mainwindow.cpp
parente1d72bb77c51ff7313b390f263bc1f10d20123b0 (diff)
downloadkdepimpi-d0fe94073aa3209532952c944b41bccfb4341a8d.zip
kdepimpi-d0fe94073aa3209532952c944b41bccfb4341a8d.tar.gz
kdepimpi-d0fe94073aa3209532952c944b41bccfb4341a8d.tar.bz2
fixxx
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 279955f..77d0ac8 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -1914,6 +1914,10 @@ void MainWindow::slotModifiedChanged( bool )
return;
int msec;
+ if ( mCalendarModifiedFlag ) {
+ //qDebug(" MainWindow timer is running ");
+ return;
+ }
// we store the changes after 1 minute,
// and for safety reasons after 10 minutes again
if ( !mSyncManager->blockSave() )
@@ -1975,8 +1979,9 @@ void MainWindow::save()
qDebug("KO: Calendar not modified. Nothing saved.");
return;
}
- if ( mSyncManager->blockSave() )
+ if ( mSyncManager->blockSave() ) {
return;
+ }
mSyncManager->setBlockSave(true);
if ( mView->checkAllFileVersions() ) {
if ( KPimGlobalPrefs::instance()->mBackupEnabled ){
@@ -2001,8 +2006,11 @@ void MainWindow::save()
setCaption(savemes);
else
qDebug(savemes);
- } else
+ } else {
setCaption(i18n("Saving cancelled!"));
+ mCalendarModifiedFlag = false;
+ slotModifiedChanged( true );
+ }
mSyncManager->setBlockSave( false );
}