X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2797f557a4897260611905f411152bd97c4c746..67a083dd38d1ad1df8c6a25a58bb2f0ec4f3a936:/samples/ipc/server.cpp diff --git a/samples/ipc/server.cpp b/samples/ipc/server.cpp index 4b735d96ed..9680d222f8 100644 --- a/samples/ipc/server.cpp +++ b/samples/ipc/server.cpp @@ -165,7 +165,7 @@ void MyFrame::Enable() GetStart()->Enable(m_server == NULL); GetServername()->Enable(m_server == NULL); GetAdvise()->Enable(m_server && m_server->CanAdvise()); - GetDisconnect()->Enable(m_server && m_server->IsConnected() != NULL); + GetDisconnect()->Enable(m_server && m_server->IsConnected()); } void MyFrame::OnClose(wxCloseEvent& event)