From b405a3504e4585b502624d92c733d2e82921edac Mon Sep 17 00:00:00 2001 From: Sheen Tian Date: Tue, 12 Jul 2022 16:18:13 +0800 Subject: [PATCH] Fix wrong reference --- src/details/QCefConfigPrivate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/details/QCefConfigPrivate.cpp b/src/details/QCefConfigPrivate.cpp index 9da8ba11..7ed61c8f 100644 --- a/src/details/QCefConfigPrivate.cpp +++ b/src/details/QCefConfigPrivate.cpp @@ -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().rgba(); - CefString(&settings->user_agent) = config->d_ptr->userAgent_; + settings->background_color = cfg.backgroundColor_.value().rgba(); + CefString(&settings->user_agent) = cfg.userAgent_; #if !defined(Q_OS_MACOS) CefString(&settings->browser_subprocess_path) = cfg.browserSubProcessPath_;