--- a/kded/passworddialog.cpp +++ b/kded/passworddialog.cpp @@ -106,13 +106,18 @@ void PasswordDialog::initializeUi() return; } + QString error; + if (m_flags & SecretAgent::RequestNew) { + error = i18n("Invalid password."); + } + WirelessSetting::Ptr wifi = m_connectionSettings->setting(Setting::Wireless).dynamicCast(); Setting::SettingType connectionType = setting->type(); if (wifi && (connectionType == Setting::WirelessSecurity || connectionType == Setting::Security8021x)) { const QString ssid = QString::fromUtf8(wifi->ssid()); - m_ui->labelText->setText(i18n("Provide the password for the wireless network '%1':", ssid)); + m_ui->labelText->setText(error + " " + i18n("Provide the password for the wireless network '%1':", ssid)); } else { - m_ui->labelText->setText(i18n("Provide the password for the connection '%1':", m_connectionSettings->id())); + m_ui->labelText->setText(error + " " + i18n("Provide the password for the connection '%1':", m_connectionSettings->id())); } QString connectionLabel; diff --git a/kded/passworddialog.ui b/kded/passworddialog.ui index 3efa85e8..26b651b9 100644 --- a/kded/passworddialog.ui +++ b/kded/passworddialog.ui @@ -75,7 +75,7 @@ TextLabel - Qt::PlainText + Qt::RichText true