author | zautrix <zautrix> | 2005-07-26 15:43:00 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-26 15:43:00 (UTC) |
commit | d0fe94073aa3209532952c944b41bccfb4341a8d (patch) (side-by-side diff) | |
tree | abab8e118a2661847c65715b9c68e5d3b9ac97e6 /korganizer/mainwindow.cpp | |
parent | e1d72bb77c51ff7313b390f263bc1f10d20123b0 (diff) | |
download | kdepimpi-d0fe94073aa3209532952c944b41bccfb4341a8d.zip kdepimpi-d0fe94073aa3209532952c944b41bccfb4341a8d.tar.gz kdepimpi-d0fe94073aa3209532952c944b41bccfb4341a8d.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/mainwindow.cpp | 12 |
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 @@ -1915,4 +1915,8 @@ void MainWindow::slotModifiedChanged( bool ) 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 @@ -1976,6 +1980,7 @@ void MainWindow::save() return; } - if ( mSyncManager->blockSave() ) + if ( mSyncManager->blockSave() ) { return; + } mSyncManager->setBlockSave(true); if ( mView->checkAllFileVersions() ) { @@ -2002,6 +2007,9 @@ void MainWindow::save() else qDebug(savemes); - } else + } else { setCaption(i18n("Saving cancelled!")); + mCalendarModifiedFlag = false; + slotModifiedChanged( true ); + } mSyncManager->setBlockSave( false ); } |