summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-05-08 17:00:43 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-05-10 12:08:23 +0200
commitb7b6b5162cc96f0ef1a120af817ce3dbf98ebdfa (patch)
tree442cc25af60add8096abec4c8c9d51dbb54599e3 /Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
parent7b0d7799b5a96b9aa5fc385a60b695cda651d92d (diff)
Qt/GeneralWidget: Refresh backend settings properly
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
index e78985321c..f2d970cebc 100644
--- a/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
+++ b/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
@@ -201,7 +201,11 @@ void GeneralWidget::SaveSettings()
}
}
SConfig::GetInstance().m_strVideoBackend = current_backend;
- backend->InitBackendInfo();
+
+ g_Config.Refresh();
+
+ g_video_backend = backend.get();
+ g_video_backend->InitBackendInfo();
emit BackendChanged(QString::fromStdString(current_backend));
break;
}