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 d40bbef57f
commit 92f4c3d257
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -76,7 +76,7 @@ void MachineConfigDialog::slotOk() {
void MachineConfigDialog::processLockouts() {
m_base->specifiedPassword->setEnabled(m_base->manuallySpecifyPassword->isOn());
if (((m_base->manuallySpecifyPassword->isOn() == true) && (strcmp(m_base->specifiedPassword->password(), "") == 0)) || (m_base->machineName->text() == "")) {
if (((m_base->manuallySpecifyPassword->isOn() == true) && (m_base->specifiedPassword->password().isEmpty())) || (m_base->machineName->text() == "")) {
enableButton(KDialogBase::Ok, false);
}
else {

Loading…
Cancel
Save