From: Michael Wetherell Date: Sun, 27 Nov 2005 09:29:46 +0000 (+0000) Subject: Small fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9b70ed7b55dfead260f7127f7808061a771af22d Small fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/ipc/client.cpp b/samples/ipc/client.cpp index 5cea66976a..8b4dc3bff3 100644 --- a/samples/ipc/client.cpp +++ b/samples/ipc/client.cpp @@ -217,12 +217,12 @@ void MyFrame::Enable() GetServername()->Enable(m_client == NULL); GetHostname()->Enable(m_client == NULL); GetTopic()->Enable(m_client == NULL); - GetDisconnect()->Enable(m_client && m_client->IsConnected() != NULL); - GetStartAdvise()->Enable(m_client && m_client->IsConnected() != NULL); - GetStopAdvise()->Enable(m_client && m_client->IsConnected() != NULL); - GetExecute()->Enable(m_client && m_client->IsConnected() != NULL); - GetPoke()->Enable(m_client && m_client->IsConnected() != NULL); - GetRequest()->Enable(m_client && m_client->IsConnected() != NULL); + GetDisconnect()->Enable(m_client != NULL && m_client->IsConnected()); + GetStartAdvise()->Enable(m_client != NULL && m_client->IsConnected()); + GetStopAdvise()->Enable(m_client != NULL && m_client->IsConnected()); + GetExecute()->Enable(m_client != NULL && m_client->IsConnected()); + GetPoke()->Enable(m_client != NULL && m_client->IsConnected()); + GetRequest()->Enable(m_client != NULL && m_client->IsConnected()); } void MyFrame::OnClose(wxCloseEvent& event)