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 29, 2022
1 parent 353e0c7 commit da41b45
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 @@ -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);
Expand Down

0 comments on commit da41b45

Please sign in to comment.