summaryrefslogtreecommitdiffstats
path: root/tderesources/caldav
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-07-07 19:51:30 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-07-07 19:51:30 -0500
commit8231cc23f3e8b266a6b0e229865905233e867cbf (patch)
treec3392a7bf9a843f9f46de3bee0ec895ce4d2a068 /tderesources/caldav
parent93aee1b625df28b290eaf0779ee241ddce27cb69 (diff)
downloadtdepim-8231cc23f3e8b266a6b0e229865905233e867cbf.tar.gz
tdepim-8231cc23f3e8b266a6b0e229865905233e867cbf.zip
Fix korgac abort on startup due to oversized tray icon creation when icon widget has not yet been shown
Properly print caldav/carddav wallet warnings to prevent backtrace spew
Diffstat (limited to 'tderesources/caldav')
-rw-r--r--tderesources/caldav/preferences.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tderesources/caldav/preferences.cpp b/tderesources/caldav/preferences.cpp
index a4be7cc13..a9ba68785 100644
--- a/tderesources/caldav/preferences.cpp
+++ b/tderesources/caldav/preferences.cpp
@@ -47,12 +47,12 @@ bool CalDavPrefs::setWalletFolder(const TQString& folder) {
if (!mWallet->hasFolder(folder)) {
if (!mWallet->createFolder(folder)) {
ret = false;
- kdWarning() << "can't create the wallet folder for CalDAV passwords";
+ kdWarning() << "can't create the wallet folder for CalDAV passwords\n";
}
}
if (!mWallet->setFolder(folder)) {
ret = false;
- kdWarning() << "can't set the wallet folder for CalDAV passwords";
+ kdWarning() << "can't set the wallet folder for CalDAV passwords\n";
}
} else {
// the wallet is inaccessible or not configured
@@ -69,18 +69,18 @@ Wallet* CalDavPrefs::getWallet() {
// the wallet is not marked as inaccessible
if (NULL == mWallet) {
- kdDebug() << "creating wallet for " + mPrefix << '\n';
+ kdDebug() << "creating wallet for " << mPrefix << '\n';
mWallet = Wallet::openWallet(Wallet::NetworkWallet(), 0);
if (NULL == mWallet) {
mNoWallet = true; // can't open the wallet, mark it inaccessible
- kdWarning() << "can't create a wallet for CalDAV passwords";
+ kdWarning() << "can't create a wallet for CalDAV passwords\n";
} else {
if (setWalletFolder(WALLET_FOLDER)) {
// reserved
} else {
// can't set the wallet folder, remove the wallet and mark it inaccessible
- kdWarning() << "can't set the walet folder for CalDAV passwords";
+ kdWarning() << "can't set the walet folder for CalDAV passwords\n";
removeWallet(true);
}
}
@@ -115,7 +115,7 @@ bool CalDavPrefs::writePasswordToWallet(const TQString& password) {
if (NULL != w) {
int rc = w->writePassword(mPrefix + WALLET_PWD_SUFFIX, password);
if (0 != rc) {
- kdWarning() << "CalDAV: can't write password to the wallet";
+ kdWarning() << "CalDAV: can't write password to the wallet\n";
} else {
ret = true;
}
@@ -136,7 +136,7 @@ bool CalDavPrefs::readPasswordFromWallet(TQString& password) {
password = p;
ret = true;
} else {
- kdWarning() << "CalDAV: can't read password from the wallet";
+ kdWarning() << "CalDAV: can't read password from the wallet\n";
password = NO_PASSWORD;
}
}
@@ -154,7 +154,7 @@ bool CalDavPrefs::removePasswordFromWallet() {
if (0 == rc) {
ret = true;
} else {
- kdWarning() << "CalDAV: can't remove password from the wallet";
+ kdWarning() << "CalDAV: can't remove password from the wallet\n";
}
}