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 78b7ab0 commit c8c801d
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 c8c801d

Please sign in to comment.