summaryrefslogtreecommitdiffstats
path: root/tderesources/carddav/resource.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-11-29 19:52:17 +0100
committerSlávek Banko <[email protected]>2018-11-29 21:48:23 +0100
commit2e5de46030e2354b851ba731f6c76ac30a2e8a3b (patch)
treee48732e76e7d0ceb4e01caab16c1aa2a119c1ad0 /tderesources/carddav/resource.cpp
parent2f0c49e8523a4d26b6bb9c7c8a05d68cb023a568 (diff)
downloadtdepim-2e5de46030e2354b851ba731f6c76ac30a2e8a3b.tar.gz
tdepim-2e5de46030e2354b851ba731f6c76ac30a2e8a3b.zip
Adapted to new KPasswordEdit::password() signature.
This relates to bug 2961. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tderesources/carddav/resource.cpp')
-rw-r--r--tderesources/carddav/resource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tderesources/carddav/resource.cpp b/tderesources/carddav/resource.cpp
index 3da63e4b3..69eb98e4a 100644
--- a/tderesources/carddav/resource.cpp
+++ b/tderesources/carddav/resource.cpp
@@ -372,14 +372,14 @@ void ResourceCardDav::loadFinished() {
if (loader->error()) {
if (loader->errorNumber() == -401) {
if (NULL != mPrefs) {
- TQCString newpass;
+ TQString newpass;
if (KPasswordDialog::getPassword (newpass, TQString("<b>") + i18n("Remote authorization required") + TQString("</b><p>") + i18n("Please input the password for") + TQString(" ") + mPrefs->getusername(), NULL) != 1) {
log("load error: " + loader->errorString() );
if (addressBook() != NULL) addressBook()->error(TQString("[%1] ").arg(abs(loader->errorNumber())) + loader->errorString());
}
else {
// Set new password and try again
- mPrefs->setPassword(TQString(newpass));
+ mPrefs->setPassword(newpass);
startLoading(mPrefs->getFullUrl());
}
}
@@ -641,14 +641,14 @@ void ResourceCardDav::writingFinished() {
if (mWriter->error() && (abs(mWriter->errorNumber()) != 207)) {
if (mWriter->errorNumber() == -401) {
if (NULL != mPrefs) {
- TQCString newpass;
+ TQString newpass;
if (KPasswordDialog::getPassword (newpass, TQString("<b>") + i18n("Remote authorization required") + TQString("</b><p>") + i18n("Please input the password for") + TQString(" ") + mPrefs->getusername(), NULL) != 1) {
log("write error: " + mWriter->errorString());
if (addressBook() != NULL) addressBook()->error(TQString("[%1] ").arg(abs(mWriter->errorNumber())) + mWriter->errorString());
}
else {
// Set new password and try again
- mPrefs->setPassword(TQString(newpass));
+ mPrefs->setPassword(newpass);
startWriting(mPrefs->getFullUrl());
}
}