summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-04-22 09:02:00 (UTC)
committer zautrix <zautrix>2005-04-22 09:02:00 (UTC)
commit86518702ea6efc14992580a7fc6c089905cfb716 (patch) (side-by-side diff)
tree29ba7c61bd1948a0eb1155d1f4f06f48aeaadd9f /korganizer
parentabf935a18e55fcbe221d5a7c652840af279e2e3f (diff)
downloadkdepimpi-86518702ea6efc14992580a7fc6c089905cfb716.zip
kdepimpi-86518702ea6efc14992580a7fc6c089905cfb716.tar.gz
kdepimpi-86518702ea6efc14992580a7fc6c089905cfb716.tar.bz2
fixes
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 9ad0694..eed023c 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -1767,10 +1767,9 @@ void MainWindow::saveOnClose()
}
#endif
-
- mView->writeSettings();
if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName()))
save();
+ mView->writeSettings();
}
void MainWindow::slotModifiedChanged( bool changed )
{
@@ -1812,7 +1811,7 @@ void MainWindow::save()
QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir;
if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir)
bupDir = KGlobalSettings::backupDataDir();
- int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );//55;//call backup
+ int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );
if ( retval == 0 ) {
qDebug("KO: Backup cancelled. Will try again tomorrow ");
// retval == 0 : backup skipped for today, try again tomorrow