summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-05-10 12:16:19 +0200
committerGitHub <noreply@github.com>2018-05-10 12:16:19 +0200
commitfd1ea63383f7d9189a14a99948e08fddc4e4d7ee (patch)
tree53566962d59b182719e727c1fcd430022c79fa6a /Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
parent060c750a892eb71e0ac4bc2f81f088b279906912 (diff)
parentbe007b436c210a164ca7710761d35e88357fdfff (diff)
Merge pull request #6788 from spycrab/qt_gconf_fixes
Qt/GraphicsWindow: Fix multiple issues
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
index e78985321c..6053420ed9 100644
--- a/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
+++ b/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp
@@ -173,8 +173,6 @@ void GeneralWidget::SaveSettings()
const auto current_backend = backend->GetName();
if (SConfig::GetInstance().m_strVideoBackend != current_backend)
{
- SConfig::GetInstance().m_strVideoBackend = current_backend;
-
if (backend->GetName() == "Software Renderer")
{
QMessageBox confirm_sw;
@@ -201,7 +199,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;
}