]> git.saurik.com Git - wxWidgets.git/commitdiff
Small fixes
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 27 Nov 2005 09:29:46 +0000 (09:29 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 27 Nov 2005 09:29:46 +0000 (09:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/ipc/client.cpp

index 5cea66976a66deb9c173a780ecc564317612b62f..8b4dc3bff3c940b88a76a0433dfb4bc2ac1ff219 100644 (file)
@@ -217,12 +217,12 @@ void MyFrame::Enable()
     GetServername()->Enable(m_client == NULL);
     GetHostname()->Enable(m_client == NULL);
     GetTopic()->Enable(m_client == NULL);
     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)
 }
 
 void MyFrame::OnClose(wxCloseEvent& event)