From 1dd82633758cf83c929bfbaeca02b5d9bddd13fa Mon Sep 17 00:00:00 2001 From: Techjar Date: Sat, 4 May 2019 01:54:57 -0400 Subject: [PATCH] Qt/NetPlayDialog: Fix checksum menu being visible for everyone The wrong function was used to attempt to hide the menu. Non-hosts will segfault upon trying to use it as they don't have a server instance. --- Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp index fe855cdd09..bf97cd87e8 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp @@ -542,10 +542,10 @@ void NetPlayDialog::show(std::string nickname, bool use_traversal) m_data_menu->menuAction()->setVisible(is_hosting); m_network_menu->menuAction()->setVisible(is_hosting); + m_md5_menu->menuAction()->setVisible(is_hosting); m_start_button->setHidden(!is_hosting); m_kick_button->setHidden(!is_hosting); m_assign_ports_button->setHidden(!is_hosting); - m_md5_menu->setHidden(!is_hosting); m_room_box->setHidden(!is_hosting); m_hostcode_label->setHidden(!is_hosting); m_hostcode_action_button->setHidden(!is_hosting);