diff options
author | Michele Calgaro <[email protected]> | 2018-11-28 00:04:05 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-11-28 00:04:05 +0900 |
commit | 6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b (patch) | |
tree | 154aa555033fe887b9b56d8a559000c89b166f1e /kcontrol/hwmanager/cryptpassworddlg.cpp | |
parent | 3c2da5f0e188e1f1152da840bdf8d94ceb509671 (diff) | |
download | tdebase-6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b.tar.gz tdebase-6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b.zip |
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kcontrol/hwmanager/cryptpassworddlg.cpp')
-rw-r--r-- | kcontrol/hwmanager/cryptpassworddlg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kcontrol/hwmanager/cryptpassworddlg.cpp b/kcontrol/hwmanager/cryptpassworddlg.cpp index 1d66d89c1..b0f0e1cd8 100644 --- a/kcontrol/hwmanager/cryptpassworddlg.cpp +++ b/kcontrol/hwmanager/cryptpassworddlg.cpp @@ -90,7 +90,8 @@ CryptPasswordDialog::~CryptPasswordDialog() TQByteArray CryptPasswordDialog::password() { if (m_base->textPasswordButton->isOn() == true) { - m_password.duplicate(m_base->textPasswordEntry->password(), strlen(m_base->textPasswordEntry->password())); + TQCString pass = m_base->textPasswordEntry->password().utf8(); + m_password.duplicate(pass, pass.length()); if (m_useCard) *m_useCard = false; } else if (m_base->filePasswordButton->isOn() == true) { @@ -109,7 +110,7 @@ void CryptPasswordDialog::processLockouts() { m_base->textPasswordEntry->setEnabled(true); m_base->filePasswordURL->setEnabled(false); m_base->textPasswordEntry->setFocus(); - if (strlen(m_base->textPasswordEntry->password()) > 0) { + if (m_base->textPasswordEntry->password().length() > 0) { enableButtonOK(true); } else { |