Index: events.cpp =================================================================== RCS file: /projects/pgadmin3/src/ui/events.cpp,v retrieving revision 1.109 retrieving revision 1.110 diff -Lsrc/ui/events.cpp -Lsrc/ui/events.cpp -u -w -r1.109 -r1.110 --- src/ui/events.cpp +++ src/ui/events.cpp @@ -257,7 +257,8 @@ bool rc = server->StopService(); if (rc) { - OnDisconnect(wxCommandEvent()); + wxCommandEvent nullEvent; + OnDisconnect(nullEvent); execSelChange(server->GetId(), true); } EndMsg();