kwallet: Check if handle is valid before using it
The wallet could have been closed after a while. Check if the wallet is
open before using it
Fixes
@@ -76,7 +76,9 @@ class DBusKeyring(KeyringBackend):
def connected(self, service):
if self.handle >= 0:
+ if self.iface.isOpen(self.handle):
return True
+
bus = dbus.SessionBus(mainloop=DBusGMainLoop())
wId = 0
try:
