Skip to content
Commit c740a8ed authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Fix a bug causing being unable to overwrite existing cached data

This bug has been introduced by changing
WebEngineWallet::WebEngineWalletPrivate::saveDataToCache so that it
doesn't delete entries in pendingSaveRequests anymore but leaves this
task to its caller. However, the caller can't know whether the data has
actually been saved or whether the saveFormDataRequested signal has been
emitted because the user needs to decide what to do. As a consequence,
the entry in pendingSaveRequests will always be removed, so that when
the user decides to save it, it won't be there anymore.

To avoid this issue, saveDataToCache now returns a bool telling whether
the data has been saved (and the entry must be remvoed) or not.
parent 5fcb0f22
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