diff --git a/pgadmin/dlg/dlgProperty.cpp b/pgadmin/dlg/dlgProperty.cpp index 9ac9048..1a91cc8 100644 --- a/pgadmin/dlg/dlgProperty.cpp +++ b/pgadmin/dlg/dlgProperty.cpp @@ -361,16 +361,17 @@ int dlgProperty::Go(bool modal) if (pg) pg->SetFocus(); } - if (modal) - return ShowModal(); - else - Show(true); // This fixes a UI glitch on MacOS X and Windows // Because of the new layout code, the Privileges pane don't size itself properly SetSize(GetSize().GetWidth() + 1, GetSize().GetHeight()); SetSize(GetSize().GetWidth() - 1, GetSize().GetHeight()); + if (modal) + return ShowModal(); + else + Show(true); + return 0; }