author | zautrix <zautrix> | 2005-07-02 07:02:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-02 07:02:47 (UTC) |
commit | 58a4e6e5dcc24e2f5c17ef9f0e6879d625b5f764 (patch) (side-by-side diff) | |
tree | f2c6c5c541a76a9e77fe8176add728127c7b6a38 /korganizer/mainwindow.cpp | |
parent | b51bfb06293b34b77c46954253ab1b5220c8dd03 (diff) | |
download | kdepimpi-58a4e6e5dcc24e2f5c17ef9f0e6879d625b5f764.zip kdepimpi-58a4e6e5dcc24e2f5c17ef9f0e6879d625b5f764.tar.gz kdepimpi-58a4e6e5dcc24e2f5c17ef9f0e6879d625b5f764.tar.bz2 |
fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 862d437..f68f032 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1903,52 +1903,57 @@ void MainWindow::backupAllFiles() KOPrefs::instance()->mLastBackupDate = daysTo; setCaption(i18n("Backup succesfully finished" )); } else if ( retval == 2 ){ setCaption(i18n("Backup globally disabled" )); qDebug("KO: Backup globally cancelled."); // backup globally cancelled KPimGlobalPrefs::instance()->mBackupEnabled = false; } // retval == 3: do nothing, try again later } void MainWindow::save() { + if ( mView->viewManager()->journalView() ) mView->viewManager()->journalView()->checkModified(); if ( !mCalendarModifiedFlag ) { qDebug("KO: Calendar not modified. Nothing saved."); return; } if ( mSyncManager->blockSave() ) return; mSyncManager->setBlockSave(true); if ( mView->checkAllFileVersions() ) { if ( KPimGlobalPrefs::instance()->mBackupEnabled ){ QDate reference ( 2000,1,1); int daysTo = reference.daysTo ( QDate::currentDate() ); if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) { backupAllFiles(); } ; // KPimGlobalPrefs::instance()->mLastBackupDate } QTime neededSaveTime = QDateTime::currentDateTime().time(); - setCaption(i18n("KO/Pi:Saving Data to File ..." )); + if ( !isMinimized () ) + setCaption(i18n("KO/Pi:Saving Data to File ..." )); qDebug("KO: Start saving data to file!"); mView->saveCalendars(); mCalendarModifiedFlag = false; int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); qDebug("KO: Needed %d ms for saving.",msNeeded ); QString savemes; savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); - setCaption(savemes); + if ( !isMinimized () ) + setCaption(savemes); + else + qDebug(savemes); } else setCaption(i18n("Saving cancelled!")); mSyncManager->setBlockSave( false ); } void MainWindow::keyReleaseEvent ( QKeyEvent * e) { if ( !e->isAutoRepeat() ) { mFlagKeyPressed = false; } } void MainWindow::keyPressEvent ( QKeyEvent * e ) |