author | zautrix <zautrix> | 2007-06-05 13:21:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2007-06-05 13:21:33 (UTC) |
commit | d5c53970b9e12bfe774d1fecd603080aded24e09 (patch) (side-by-side diff) | |
tree | fca3c555b3e37302ebe1ee1840fa3e27502dcc50 /libkdepim | |
parent | a388f4f019ccf2b7c138a6814b44b9e8f2a5f570 (diff) | |
download | kdepimpi-d5c53970b9e12bfe774d1fecd603080aded24e09.zip kdepimpi-d5c53970b9e12bfe774d1fecd603080aded24e09.tar.gz kdepimpi-d5c53970b9e12bfe774d1fecd603080aded24e09.tar.bz2 |
print fix
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 764c495..292951b 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp @@ -912,33 +912,37 @@ void KDEPIMConfigWidget::usrReadConfig() mCurrentClient = mEmailClient; updateClientWidgets(); blockSignals( blocked ); } void KDEPIMConfigWidget::usrWriteConfig() { KPimGlobalPrefs* prefs = KPimGlobalPrefs::instance(); saveEditFieldSettings(); prefs->mBackupNumbers = mBackupNumbersSpin->value(); prefs->mBackupDayCount = mBackupDayCountSpin->value(); - prefs->mBackupDatadir = mBackupUrl->url(); + QString bup_url = mBackupUrl->url(); + if ( bup_url.right(1) != "/" && bup_url.right(1) != "\\" ) + bup_url += "/"; + + prefs->mBackupDatadir = bup_url; prefs->mUserDateFormatShort = mUserDateFormatShort->text().replace( QRegExp(","), QString("K") ); prefs->mUserDateFormatLong = mUserDateFormatLong->text().replace( QRegExp(","), QString("K") ); prefs->mTimeZoneId = mTimeZoneCombo->currentText(); QDate date; date = mStartDateSavingEdit->date(); int sub = 0; if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) sub = 1; prefs->mDaylightsavingStart = date.dayOfYear()-sub; date = mEndDateSavingEdit->date(); if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) sub = 1; else sub = 0; |