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 () ); WebInterfacePluginSettings::setPhpExecutablePath(phpExecutablePath->url () );
if(!username->text().isEmpty() && !password.isEmpty()){ if(!username->text().isEmpty() && !password.isEmpty()){
WebInterfacePluginSettings::setUsername(username->text() ); WebInterfacePluginSettings::setUsername(username->text() );
KMD5 context(password); KMD5 context(password.utf8());
WebInterfacePluginSettings::setPassword(context.hexDigest().data()); WebInterfacePluginSettings::setPassword(context.hexDigest().data());
} }
@ -102,7 +102,7 @@ bool WebInterfacePrefWidget::apply()
void WebInterfacePrefWidget::btnUpdate_clicked() void WebInterfacePrefWidget::btnUpdate_clicked()
{ {
TQCString passwd; TQString passwd;
int result = KPasswordDialog::getNewPassword(passwd, i18n("Please enter a new password for the web interface.")); int result = KPasswordDialog::getNewPassword(passwd, i18n("Please enter a new password for the web interface."));
if (result == KPasswordDialog::Accepted) if (result == KPasswordDialog::Accepted)
password=passwd; password=passwd;

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

Loading…
Cancel
Save