Skip to content

Commit 1ab0faa

Browse files
authored
Merge pull request #455 from MrS-ibra/bugfix/quickmatch-disable-back-on-matchfound
bugfix(quickmatch): Disable the back button when a QuickMatch is found
2 parents 5d94978 + 04b6561 commit 1ab0faa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLQuickMatchMenu.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ void WOLQuickMatchMenuInit( WindowLayout *layout, void *userData )
12081208

12091209
pLobbyInterface->RegisterForMatchmakingMatchFoundCallback([]()
12101210
{
1211+
buttonBack->winEnable(FALSE);
12111212
buttonStop->winEnable(FALSE);
12121213
if (TheAudio)
12131214
{
@@ -1252,9 +1253,6 @@ void WOLQuickMatchMenuInit( WindowLayout *layout, void *userData )
12521253
// TODO_NGMP
12531254
//SendStatsToOtherPlayers(TheNGMPGame);
12541255

1255-
// we've started, there's no going back
1256-
// i.e. disable the back button.
1257-
buttonBack->winEnable(FALSE);
12581256
GameWindow* buttonBuddy = TheWindowManager->winGetWindowFromId(NULL, NAMEKEY("GameSpyGameOptionsMenu.wnd:ButtonCommunicator"));
12591257
if (buttonBuddy)
12601258
buttonBuddy->winEnable(FALSE);

0 commit comments

Comments
 (0)