author | zautrix <zautrix> | 2007-06-05 13:21:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2007-06-05 13:21:33 (UTC) |
commit | d5c53970b9e12bfe774d1fecd603080aded24e09 (patch) (unidiff) | |
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() | |||
912 | mCurrentClient = mEmailClient; | 912 | mCurrentClient = mEmailClient; |
913 | 913 | ||
914 | updateClientWidgets(); | 914 | updateClientWidgets(); |
915 | 915 | ||
916 | blockSignals( blocked ); | 916 | blockSignals( blocked ); |
917 | 917 | ||
918 | } | 918 | } |
919 | 919 | ||
920 | void KDEPIMConfigWidget::usrWriteConfig() | 920 | void KDEPIMConfigWidget::usrWriteConfig() |
921 | { | 921 | { |
922 | KPimGlobalPrefs* prefs = KPimGlobalPrefs::instance(); | 922 | KPimGlobalPrefs* prefs = KPimGlobalPrefs::instance(); |
923 | 923 | ||
924 | saveEditFieldSettings(); | 924 | saveEditFieldSettings(); |
925 | 925 | ||
926 | prefs->mBackupNumbers = mBackupNumbersSpin->value(); | 926 | prefs->mBackupNumbers = mBackupNumbersSpin->value(); |
927 | prefs->mBackupDayCount = mBackupDayCountSpin->value(); | 927 | prefs->mBackupDayCount = mBackupDayCountSpin->value(); |
928 | prefs->mBackupDatadir = mBackupUrl->url(); | 928 | QString bup_url = mBackupUrl->url(); |
929 | if ( bup_url.right(1) != "/" && bup_url.right(1) != "\\" ) | ||
930 | bup_url += "/"; | ||
931 | |||
932 | prefs->mBackupDatadir = bup_url; | ||
929 | 933 | ||
930 | prefs->mUserDateFormatShort = mUserDateFormatShort->text().replace( QRegExp(","), QString("K") ); | 934 | prefs->mUserDateFormatShort = mUserDateFormatShort->text().replace( QRegExp(","), QString("K") ); |
931 | prefs->mUserDateFormatLong = mUserDateFormatLong->text().replace( QRegExp(","), QString("K") ); | 935 | prefs->mUserDateFormatLong = mUserDateFormatLong->text().replace( QRegExp(","), QString("K") ); |
932 | 936 | ||
933 | prefs->mTimeZoneId = mTimeZoneCombo->currentText(); | 937 | prefs->mTimeZoneId = mTimeZoneCombo->currentText(); |
934 | QDate date; | 938 | QDate date; |
935 | date = mStartDateSavingEdit->date(); | 939 | date = mStartDateSavingEdit->date(); |
936 | int sub = 0; | 940 | int sub = 0; |
937 | if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) | 941 | if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) |
938 | sub = 1; | 942 | sub = 1; |
939 | prefs->mDaylightsavingStart = date.dayOfYear()-sub; | 943 | prefs->mDaylightsavingStart = date.dayOfYear()-sub; |
940 | date = mEndDateSavingEdit->date(); | 944 | date = mEndDateSavingEdit->date(); |
941 | if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) | 945 | if ( QDate::leapYear( date.year() ) && date.dayOfYear() > 59 ) |
942 | sub = 1; | 946 | sub = 1; |
943 | else | 947 | else |
944 | sub = 0; | 948 | sub = 0; |