author | zautrix <zautrix> | 2005-04-22 09:02:00 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-22 09:02:00 (UTC) |
commit | 86518702ea6efc14992580a7fc6c089905cfb716 (patch) (unidiff) | |
tree | 29ba7c61bd1948a0eb1155d1f4f06f48aeaadd9f | |
parent | abf935a18e55fcbe221d5a7c652840af279e2e3f (diff) | |
download | kdepimpi-86518702ea6efc14992580a7fc6c089905cfb716.zip kdepimpi-86518702ea6efc14992580a7fc6c089905cfb716.tar.gz kdepimpi-86518702ea6efc14992580a7fc6c089905cfb716.tar.bz2 |
fixes
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 5 | ||||
-rw-r--r-- | bin/kdepim/pwmanager/germantranslation.txt | 5 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 5 | ||||
-rw-r--r-- | microkde/kapplication.cpp | 13 |
4 files changed, 18 insertions, 10 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 85aed43..50056c4 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -759,4 +759,9 @@ | |||
759 | { "Colors","Farben" }, | 759 | { "Colors","Farben" }, |
760 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 760 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
761 | { "Backup enabled","Backup angeschaltet" }, | ||
762 | { "Use standard backup dir","Standard Backupverzeichnis" }, | ||
763 | { "Number of Backups:","Anzahl der Backups" }, | ||
764 | { "Make backup every ","Mache ein Backup alle " }, | ||
765 | { " days"," Tage" }, | ||
761 | { "","" }, | 766 | { "","" }, |
762 | { "","" }, | 767 | { "","" }, |
diff --git a/bin/kdepim/pwmanager/germantranslation.txt b/bin/kdepim/pwmanager/germantranslation.txt index a50dd04..38896fb 100644 --- a/bin/kdepim/pwmanager/germantranslation.txt +++ b/bin/kdepim/pwmanager/germantranslation.txt | |||
@@ -354,4 +354,9 @@ | |||
354 | { "Colors","Farben" }, | 354 | { "Colors","Farben" }, |
355 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 355 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
356 | { "Backup enabled","Backup angeschaltet" }, | ||
357 | { "Use standard backup dir","Standard Backupverzeichnis" }, | ||
358 | { "Number of Backups:","Anzahl der Backups" }, | ||
359 | { "Make backup every ","Mache ein Backup alle " }, | ||
360 | { " days"," Tage" }, | ||
356 | { "","" }, | 361 | { "","" }, |
357 | { "","" }, | 362 | { "","" }, |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 9ad0694..eed023c 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1768,8 +1768,7 @@ void MainWindow::saveOnClose() | |||
1768 | #endif | 1768 | #endif |
1769 | 1769 | ||
1770 | |||
1771 | mView->writeSettings(); | ||
1772 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | 1770 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) |
1773 | save(); | 1771 | save(); |
1772 | mView->writeSettings(); | ||
1774 | } | 1773 | } |
1775 | void MainWindow::slotModifiedChanged( bool changed ) | 1774 | void MainWindow::slotModifiedChanged( bool changed ) |
@@ -1813,5 +1812,5 @@ void MainWindow::save() | |||
1813 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) | 1812 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) |
1814 | bupDir = KGlobalSettings::backupDataDir(); | 1813 | bupDir = KGlobalSettings::backupDataDir(); |
1815 | int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );//55;//call backup | 1814 | int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); |
1816 | if ( retval == 0 ) { | 1815 | if ( retval == 0 ) { |
1817 | qDebug("KO: Backup cancelled. Will try again tomorrow "); | 1816 | qDebug("KO: Backup cancelled. Will try again tomorrow "); |
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index 566bb41..2c9e3b6 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp | |||
@@ -171,5 +171,5 @@ int KApplication::createBackup( QString fn, QString dp, int numBup ) | |||
171 | if ( numBup < 1) return 3; | 171 | if ( numBup < 1) return 3; |
172 | int ret = 3; | 172 | int ret = 3; |
173 | qDebug("KApplication::createBackup %s --- %s --- %d", fn.latin1(), dp.latin1(), numBup); | 173 | //qDebug("KApplication::createBackup %s --- %s --- %d", fn.latin1(), dp.latin1(), numBup); |
174 | QDir bupDir ( dp ); | 174 | QDir bupDir ( dp ); |
175 | bool tryAgain = true; | 175 | bool tryAgain = true; |
@@ -201,5 +201,5 @@ int KApplication::createBackup( QString fn, QString dp, int numBup ) | |||
201 | fileList.append( fi ); | 201 | fileList.append( fi ); |
202 | } | 202 | } |
203 | qDebug("%d backup files exist ", fileList.count()); | 203 | qDebug("KApp: %d backup files exist ", fileList.count()); |
204 | int count = fileList.count(); | 204 | int count = fileList.count(); |
205 | fileList.sort(); | 205 | fileList.sort(); |
@@ -216,18 +216,17 @@ int KApplication::createBackup( QString fn, QString dp, int numBup ) | |||
216 | file.replace ( QRegExp (" "), "0" ); | 216 | file.replace ( QRegExp (" "), "0" ); |
217 | file += fName ; | 217 | file += fName ; |
218 | file = dp + "/"+file; | 218 | file = dp + file; |
219 | QString command; | 219 | QString command; |
220 | int res = 0; | 220 | int res = 0; |
221 | #ifdef _WIN32_ | 221 | #ifdef _WIN32_ |
222 | command = "xcopy "+ fn+ " "+file; | 222 | command = "copy \""+ QDir::convertSeparators( fn)+ "\" \""+QDir::convertSeparators(file)+ "\" "; |
223 | command = QDir::convertSeparators( command ); | ||
224 | #else | 223 | #else |
225 | command = "cp "+ fn+ " "+file; | 224 | command = "cp "+ fn+ " "+file; |
226 | #endif | 225 | #endif |
227 | qDebug("command %s ",command.latin1() ); | 226 | //qDebug("command %s ",command.latin1() ); |
228 | tryAgain = true; | 227 | tryAgain = true; |
229 | while ( tryAgain ) { | 228 | while ( tryAgain ) { |
230 | res = system ( command.latin1() ); | 229 | res = system ( command.latin1() ); |
231 | qDebug("copy result %d ", res); | 230 | qDebug("KApp: Copy result %d ", res); |
232 | if ( res != 0 ) { | 231 | if ( res != 0 ) { |
233 | KBackupPrefs noDir( i18n("<b>The backup copy command failed!</b>")); | 232 | KBackupPrefs noDir( i18n("<b>The backup copy command failed!</b>")); |