From 7ff20362f58bb2cbdf64545b375090e02a4ae504 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Apr 2022 14:18:00 +0300 Subject: more fixes for #3066 --- include/m_gui.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/m_gui.h b/include/m_gui.h index b4e2c4a5d4..6ff14548d7 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -113,6 +113,10 @@ public: __forceinline const char* GetDBModuleName() const { return m_szModuleName; } __forceinline const char* GetDBSettingName() const { return m_szSetting; } + __forceinline void Delete() const + { db_unset(0, m_szModuleName, m_szSetting); + } + protected: __forceinline CMOptionBase(PROTO_INTERFACE *proto, const char *szSetting) : m_szModuleName(proto->m_szModuleName), m_szSetting(szSetting) -- cgit v1.2.3