Merge pull request #2175 from RachelBryk/oc

Disable oc setting while netplay or movie is active.
This commit is contained in:
comex 2015-04-25 00:58:16 -04:00
commit 7fe13d9af8
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#include "Common/CommonTypes.h"
#include "Core/ConfigManager.h"
#include "Core/Movie.h"
#include "Core/NetPlayProto.h"
#include "DolphinWX/WxUtils.h"
#include "DolphinWX/Config/AdvancedConfigPane.h"
#include "DolphinWX/Config/AudioConfigPane.h"
@ -72,6 +74,8 @@ void CConfigMain::CreateGUIControls()
Notebook->AddPage(wii_pane, _("Wii"));
Notebook->AddPage(path_pane, _("Paths"));
Notebook->AddPage(advanced_pane, _("Advanced"));
if (Movie::IsMovieActive() || NetPlay::IsNetPlayRunning())
advanced_pane->Disable();
wxBoxSizer* const main_sizer = new wxBoxSizer(wxVERTICAL);
main_sizer->Add(Notebook, 1, wxEXPAND | wxALL, 5);