From fd84892e621677f27ab7605e0e1f06ce7af08b28 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Feb 2020 18:01:09 +0100 Subject: [PATCH] Use secret_service_clear_sync() in wxSecretStore There doesn't seem to be any reason to use secret_service_xxx() functions for Save() and Load(), but use simple API function secret_password_clearv_sync() for Delete(). Use the equivalent function from the same API layer for it too instead. --- src/unix/secretstore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/secretstore.cpp b/src/unix/secretstore.cpp index e72ce36248..fba321a6c2 100644 --- a/src/unix/secretstore.cpp +++ b/src/unix/secretstore.cpp @@ -209,8 +209,9 @@ public: wxString& errmsg) wxOVERRIDE { wxGtkError error; - if ( !secret_password_clearv_sync + if ( !secret_service_clear_sync ( + NULL, // Default service GetSchema(), BuildAttributes(service), NULL, // Can't be cancelled