Remember CredentialProvider setting while exiting

Review Request #1918 — Created Oct. 10, 2022 and submitted

Information

pidgin/pidgin
default

Reviewers

We were resetting the setting to its default if we had a NULL active provider
id. However, the only time it's valid to call
purple_credential_manager_set_active_provider with a NULL id is during shutdown.

If someone is trying to disable all credential providers, they will be selecting
the noop provider which has a non null id.

Ran and set the credential provider to libsecret. Closed the program, reopened, verified that libsecret was still selected.

Summary ID
Remember CredentialProvider setting while exiting
We were resetting the setting to it's default if we had a NULL active provider id. However, the only time it's valid to call purple_credential_manager_set_active_provider with a NULL id is during shutdown. If someone is trying to disable all credential providers, they will be selecting the noop provider which has a non null id.
2f0b6e411da968f369841af90bbbc815bd03fbe1
Description From Last Updated

Getting and unrefing the settings object can go in the if now.

QuLogicQuLogic
QuLogic
QuLogic
  1. 
      
  2. libpurple/purplecredentialmanager.c (Diff revision 1)
     
     
     
     
     
     
     
     
     

    Getting and unrefing the settings object can go in the if now.

  3. 
      
grim
QuLogic
  1. Ship It!
  2. 
      
grim
Review request changed

Status: Closed (submitted)

Loading...