-rw-r--r-- | korganizer/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 3c0259f..94d7293 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1802,17 +1802,17 @@ void MainWindow::save() | |||
1802 | if ( mSyncManager->blockSave() ) | 1802 | if ( mSyncManager->blockSave() ) |
1803 | return; | 1803 | return; |
1804 | mSyncManager->setBlockSave(true); | 1804 | mSyncManager->setBlockSave(true); |
1805 | if ( mView->checkFileVersion( defaultFileName()) ) { | 1805 | if ( mView->checkFileVersion( defaultFileName()) ) { |
1806 | if ( KPimGlobalPrefs::instance()->mBackupEnabled ){ | 1806 | if ( KPimGlobalPrefs::instance()->mBackupEnabled ){ |
1807 | QDate reference ( 2000,1,1); | 1807 | QDate reference ( 2000,1,1); |
1808 | int daysTo = reference.daysTo ( QDate::currentDate() ); | 1808 | int daysTo = reference.daysTo ( QDate::currentDate() ); |
1809 | if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) { | 1809 | if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) { |
1810 | setCaption(i18n("KO/Pi:Creating backup ... please wait ..." )); | 1810 | setCaption(i18n("Creating backup ... please wait ..." )); |
1811 | qDebug("KO: Last backup was %d days ago ", daysTo - KOPrefs::instance()->mLastBackupDate); | 1811 | qDebug("KO: Last backup was %d days ago ", daysTo - KOPrefs::instance()->mLastBackupDate); |
1812 | // we need the file path, the backup dir and the number of bups as param | 1812 | // we need the file path, the backup dir and the number of bups as param |
1813 | QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir; | 1813 | QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir; |
1814 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) | 1814 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) |
1815 | bupDir = KGlobalSettings::backupDataDir(); | 1815 | bupDir = KGlobalSettings::backupDataDir(); |
1816 | int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); | 1816 | int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); |
1817 | if ( retval == 0 ) { | 1817 | if ( retval == 0 ) { |
1818 | qDebug("KO: Backup cancelled. Will try again tomorrow "); | 1818 | qDebug("KO: Backup cancelled. Will try again tomorrow "); |