From: dpage Date: Wed, 14 Jan 2009 10:07:55 +0000 (+0000) Subject: Prevent a crash occuring if the Hint menu option is selected on Mac at an inappropria... X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=990bbb199ee8d147d0c2be59047e82230e474c04;p=users%2Fquan74%2Fpgadmin-import.git Prevent a crash occuring if the Hint menu option is selected on Mac at an inappropriate time. It seems that our attempts to disable the menu option on that platform get ignored. git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7550 a7884b65-44f6-0310-8a51-81a127f17b15 --- diff --git a/pgadmin/frm/frmHint.cpp b/pgadmin/frm/frmHint.cpp index 1b172c5ab..0cde70b1e 100644 --- a/pgadmin/frm/frmHint.cpp +++ b/pgadmin/frm/frmHint.cpp @@ -464,7 +464,8 @@ hintFactory::hintFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *too wxWindow *hintFactory::StartDialog(frmMain *form, pgObject *obj) { - obj->ShowHint(form, true); + if (obj) + obj->ShowHint(form, true); return 0; }