Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent f9567cd114
commit 290fa95924
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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;

@ -32,7 +32,7 @@ namespace kt
public:
WebInterfacePrefWidget(TQWidget *parent = 0, const char *name = 0);
bool apply();
TQCString password;
TQString password;
public slots:
void btnUpdate_clicked();
void changeLedState();

Loading…
Cancel
Save