Skip to content

Commit

Permalink
MythContext::Impl::SaveDatabaseParams(): directly access the MythDB s…
Browse files Browse the repository at this point in the history
…ingleton

This should allow moving the DatabaseSettingsCache to MythDB since
save can now be called at any time.
  • Loading branch information
ulmus-scott committed Nov 17, 2024
1 parent 5f6569f commit 7b78dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/mythcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,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);
Expand Down

0 comments on commit 7b78dfa

Please sign in to comment.