Commit d99aab06 authored by Àlex Fiestas's avatar Àlex Fiestas
Browse files

Handle KWallet correctly, do not crash on Deny

parent 25171300
......@@ -124,7 +124,7 @@ void OCreateContact::resourceCreated(KJob* job)
}
Wallet *wallet = Wallet::openWallet(Wallet::NetworkWallet(), windowId, Wallet::Synchronous);
if (!wallet->isOpen() || !wallet->isEnabled()) {
if (!wallet || !wallet->isOpen() || !wallet->isEnabled()) {
setError(-1);
emitResult();
return;
......
......@@ -69,7 +69,7 @@ void OwnCloudWizard::done(int result)
Wallet *wallet = Wallet::openWallet(Wallet::NetworkWallet(), windowId, Wallet::Synchronous);
if (!wallet->isOpen() || !wallet->isEnabled()) {
if (!wallet || !wallet->isOpen() || !wallet->isEnabled()) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment