From 74edb1efa1a40f9fb93a01eec446b32c04106c8b Mon Sep 17 00:00:00 2001 From: nowrep Date: Mon, 20 May 2013 11:14:00 +0200 Subject: [PATCH] [KWallet] Don't load incorrect passwords from wallet. --- src/plugins/KWalletPasswords/kwalletpasswordbackend.cpp | 5 ++++- src/plugins/KWalletPasswords/kwalletplugin.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/KWalletPasswords/kwalletpasswordbackend.cpp b/src/plugins/KWalletPasswords/kwalletpasswordbackend.cpp index 4e14da189..b4e22b953 100644 --- a/src/plugins/KWalletPasswords/kwalletpasswordbackend.cpp +++ b/src/plugins/KWalletPasswords/kwalletpasswordbackend.cpp @@ -178,7 +178,10 @@ void KWalletPasswordBackend::initialize() QMap::const_iterator i = entries.constBegin(); while (i != entries.constEnd()) { - m_allEntries.append(decodeEntry(i.value())); + PasswordEntry entry = decodeEntry(i.value()); + if (entry.isValid()) { + m_allEntries.append(entry); + } ++i; } } diff --git a/src/plugins/KWalletPasswords/kwalletplugin.cpp b/src/plugins/KWalletPasswords/kwalletplugin.cpp index 87d7fecff..58bbb0c01 100644 --- a/src/plugins/KWalletPasswords/kwalletplugin.cpp +++ b/src/plugins/KWalletPasswords/kwalletplugin.cpp @@ -34,7 +34,7 @@ PluginSpec KWalletPlugin::pluginSpec() spec.name = "KWallet Passwords"; spec.info = "KWallet password backend"; spec.description = "Provides support for storing passwords in KWallet"; - spec.version = "0.1.0"; + spec.version = "0.1.2"; spec.author = "David Rosca "; spec.icon = QPixmap(":kwp/data/icon.png"); spec.hasSettings = false;