summaryrefslogtreecommitdiffstats
path: root/plugins/webinterface/webinterfaceprefwidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-12-03 17:34:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-12-03 17:34:49 +0900
commit290fa95924eff298223dc391cba7499528e374f5 (patch)
treebd2511d16d20d2dd0ae7f26b5db125cf83bb7ec5 /plugins/webinterface/webinterfaceprefwidget.cpp
parentf9567cd114bb9ac3bf504cf081248435563f09b2 (diff)
downloadktorrent-290fa959.tar.gz
ktorrent-290fa959.zip
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'plugins/webinterface/webinterfaceprefwidget.cpp')
-rw-r--r--plugins/webinterface/webinterfaceprefwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/webinterface/webinterfaceprefwidget.cpp b/plugins/webinterface/webinterfaceprefwidget.cpp
index c1e19f4..33cef5a 100644
--- a/plugins/webinterface/webinterfaceprefwidget.cpp
+++ b/plugins/webinterface/webinterfaceprefwidget.cpp
@@ -92,7 +92,7 @@ bool WebInterfacePrefWidget::apply()
WebInterfacePluginSettings::setPhpExecutablePath(phpExecutablePath->url () );
if(!username->text().isEmpty() && !password.isEmpty()){
WebInterfacePluginSettings::setUsername(username->text() );
- KMD5 context(password);
+ KMD5 context(password.utf8());
WebInterfacePluginSettings::setPassword(context.hexDigest().data());
}
@@ -102,7 +102,7 @@ bool WebInterfacePrefWidget::apply()
void WebInterfacePrefWidget::btnUpdate_clicked()
{
- TQCString passwd;
+ TQString passwd;
int result = KPasswordDialog::getNewPassword(passwd, i18n("Please enter a new password for the web interface."));
if (result == KPasswordDialog::Accepted)
password=passwd;