diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-03-23 17:25:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-23 17:25:28 +0100 |
| commit | 22d851d930771f901c6cc1772170b6dd203b039e (patch) | |
| tree | 686a98b83b93e9fa2a4210f48fc4357c1e73acf2 /Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp | |
| parent | 9c700361053e708b5733fd402fd1d76e475db2b1 (diff) | |
| parent | 68733ac6c1edb90b93d12906ba2b1d41c2a4bbf2 (diff) | |
Merge pull request #6500 from spycrab/qt_respect_portable
Qt: Make QSettings use the user config directory (Make it respect portable.txt)
Diffstat (limited to 'Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp index 89fe579d5f..f4cc46becb 100644 --- a/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp +++ b/Source/Core/DolphinQt2/NetPlay/NetPlaySetupDialog.cpp @@ -17,7 +17,6 @@ #include <QListWidget> #include <QMessageBox> #include <QPushButton> -#include <QSettings> #include <QSpinBox> #include <QTabWidget> @@ -50,7 +49,7 @@ NetPlaySetupDialog::NetPlaySetupDialog(QWidget* parent) OnConnectionTypeChanged(m_connection_type->currentIndex()); - int selected_game = QSettings().value(QStringLiteral("netplay/hostgame"), 0).toInt(); + int selected_game = Settings::GetQSettings().value(QStringLiteral("netplay/hostgame"), 0).toInt(); if (selected_game >= m_host_games->count()) selected_game = 0; @@ -160,7 +159,9 @@ void NetPlaySetupDialog::ConnectWidgets() connect(m_host_port_box, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &NetPlaySetupDialog::SaveSettings); connect(m_host_games, static_cast<void (QListWidget::*)(int)>(&QListWidget::currentRowChanged), - [](int index) { QSettings().setValue(QStringLiteral("netplay/hostgame"), index); }); + [](int index) { + Settings::GetQSettings().setValue(QStringLiteral("netplay/hostgame"), index); + }); connect(m_host_force_port_check, &QCheckBox::toggled, [this](int value) { m_host_force_port_box->setEnabled(value); }); #ifdef USE_UPNP |
