Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/kwalletd/kwalletd.cpp
Show First 20 Lines • Show All 675 Lines • ▼ Show 20 Line(s) | 640 | if (w != KWindowSystem::activeWindow() && w != 0L) { | |||
---|---|---|---|---|---|
676 | notification->sendEvent(); | 676 | notification->sendEvent(); | ||
677 | } | 677 | } | ||
678 | while (!b->isOpen()) { | 678 | while (!b->isOpen()) { | ||
679 | setupDialog(kpd, w, appid, modal); | 679 | setupDialog(kpd, w, appid, modal); | ||
680 | if (kpd->exec() == QDialog::Accepted) { | 680 | if (kpd->exec() == QDialog::Accepted) { | ||
681 | password = kpd->password(); | 681 | password = kpd->password(); | ||
682 | int rc = b->open(password.toUtf8()); | 682 | int rc = b->open(password.toUtf8()); | ||
683 | if (!b->isOpen()) { | 683 | if (!b->isOpen()) { | ||
684 | const auto errorStr = KWallet::Backend::openRCToString(rc); | ||||
685 | qCWarning(KWALLETD_LOG) << "Failed to open wallet" << wallet << errorStr; | ||||
mlaurent: Use :
qCWarning(KWALLETD_LOG) ... | |||||
nitpick - qCWarning(..) add spaces between arguments by default, so there is a double space between "wallet" and <wallet> bruns: nitpick - `qCWarning(..)` add spaces between arguments by default, so there is a double space… | |||||
684 | kpd->setPrompt(i18n( | 686 | kpd->setPrompt(i18n( | ||
685 | "<qt>Error opening the wallet " | 687 | "<qt>Error opening the wallet " | ||
686 | "'<b>%1</b>'. Please try again.<br " | 688 | "'<b>%1</b>'. Please try again.<br " | ||
687 | "/>(Error code %2: %3)</qt>", | 689 | "/>(Error code %2: %3)</qt>", | ||
688 | wallet.toHtmlEscaped(), rc, | 690 | wallet.toHtmlEscaped(), rc, errorStr)); | ||
689 | KWallet::Backend::openRCToString(rc))); | | |||
690 | kpd->setPassword(QLatin1String("")); | 691 | kpd->setPassword(QLatin1String("")); | ||
691 | } | 692 | } | ||
692 | } | 693 | } | ||
693 | else { | 694 | else { | ||
694 | break; | 695 | break; | ||
695 | } | 696 | } | ||
696 | } | 697 | } | ||
697 | delete kpd; | 698 | delete kpd; | ||
▲ Show 20 Lines • Show All 1230 Lines • Show Last 20 Lines |
Use :
qCWarning(KWALLETD_LOG) ...