Fix crash when KWallet is not available.

Authored by puneethchanda on Jan 24 2020, 1:10 PM.

Description

Fix crash when KWallet is not available.

Summary:
Bug 398767
Currently, when the user clicks remember password when KWallet is disabled, falkon gets crashed.
This patch fixes the crash by checking if KWallet object is created and only then it adds to the folder.
The following functions are fixed:

  • addEntry
  • Update Entry
  • updateLastUsed
  • removeEntry
  • removeAll

Reviewers: SGOrava, drosca

Reviewed By: SGOrava, drosca

Subscribers: drosca, falkon

Tags: Falkon

Differential Revision: https://phabricator.kde.org/D26872

Details

Committed
SGOravaJan 24 2020, 1:15 PM
Reviewer
SGOrava
Differential Revision
D26872: Fix crash when KWallet is not available.
Parents
R875:90664879c511: Option for internal PDFium-based viewer on Qt 5.13+
Branches
Unknown
Tags
Unknown