From da41b4529236e8f4b9fc250055c007983721e363 Mon Sep 17 00:00:00 2001 From: Scott Theisen Date: Mon, 21 Nov 2022 23:55:35 -0500 Subject: [PATCH] MythContext::Impl::SaveDatabaseParams(): directly access the MythDB singleton This should allow moving the DatabaseSettingsCache to MythDB since save can now be called at any time. --- mythtv/libs/libmyth/mythcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmyth/mythcontext.cpp b/mythtv/libs/libmyth/mythcontext.cpp index dfe1cab2a05..51bd6d14700 100644 --- a/mythtv/libs/libmyth/mythcontext.cpp +++ b/mythtv/libs/libmyth/mythcontext.cpp @@ -684,7 +684,7 @@ bool MythContext::Impl::SaveDatabaseParams( // Use the new settings: m_dbParams = params; - gCoreContext->GetDB()->SetDatabaseParams(m_dbParams); + GetMythDB()->SetDatabaseParams(m_dbParams); // If database has changed, force its use: ResetDatabase(m_dbParams);