parent
179e9f6f8d
commit
e20f483a7d
@ -1,28 +0,0 @@
|
||||
diff --git a/src/api/KWallet/kwallet.cpp b/src/api/KWallet/kwallet.cpp
|
||||
index dffebda..15be0eb 100644
|
||||
--- a/src/api/KWallet/kwallet.cpp
|
||||
+++ b/src/api/KWallet/kwallet.cpp
|
||||
@@ -363,14 +363,16 @@ bool Wallet::isOpen(const QString &name)
|
||||
}
|
||||
} else {
|
||||
#endif
|
||||
- QDBusReply<bool> r = walletLauncher()->getInterface().isOpen(name);
|
||||
+ if (walletLauncher()->m_walletEnabled) {
|
||||
+ QDBusReply<bool> r = walletLauncher()->getInterface().isOpen(name);
|
||||
|
||||
- if (!r.isValid()) {
|
||||
- qDebug() << "Invalid DBus reply: " << r.error();
|
||||
- return false;
|
||||
- } else {
|
||||
- return r;
|
||||
- }
|
||||
+ if (!r.isValid()) {
|
||||
+ qDebug() << "Invalid DBus reply: " << r.error();
|
||||
+ return false;
|
||||
+ } else {
|
||||
+ return r;
|
||||
+ }
|
||||
+ } else return false;
|
||||
#if HAVE_KSECRETSSERVICE
|
||||
}
|
||||
#endif
|
Loading…
Reference in new issue