Skip to content

Commit

Permalink
Fix wrong reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion committed Jul 12, 2022
1 parent 12e86e4 commit b405a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/details/QCefConfigPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ QCefConfigPrivate::CopyToCefSettings(const QCefConfig* config, CefSettings* sett
// just copy the mandatory fields
QCefConfigPrivate cfg;

settings->background_color = config->d_ptr->backgroundColor_.value<QColor>().rgba();
CefString(&settings->user_agent) = config->d_ptr->userAgent_;
settings->background_color = cfg.backgroundColor_.value<QColor>().rgba();
CefString(&settings->user_agent) = cfg.userAgent_;

#if !defined(Q_OS_MACOS)
CefString(&settings->browser_subprocess_path) = cfg.browserSubProcessPath_;
Expand Down

0 comments on commit b405a35

Please sign in to comment.