Browse files

Fix the change of the superuser attribute

It was impossible to change the superuser attribute. When a user clicked on
the superuser checkbox to uncheck it, one dialog asked him to confirm.
Whatever his response was, the checkbox got checked again.

Report from Michal Kozusznik.
  • Loading branch information...
gleu committed Dec 24, 2012
1 parent 5a8c068 commit 6f8b58516a5b02eaf176bd0c89d077e3709d66c3
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGELOG
  2. +1 −1 pgadmin/dlg/dlgRole.cpp
@@ -37,6 +37,8 @@ Changes
Date Dev Ver Change details
---------- --- ------ --------------
+2012-12-24 GL 1.16.2 Fix the change of the superuser attribute. Report from
+ Michal Kozusznik.
2012-12-18 DP 1.16.2 Prevent a crash when using Cmd-A on a file loaded into
the Query Tool when opened with Cmd-E on Mac.
2012-12-07 DP 1.16.2 Fix the queries used to get object comments to allow
@@ -359,7 +359,7 @@ void dlgRole::OnChangeSuperuser(wxCommandEvent &ev)
_("Deleting a superuser might result in unwanted behaviour (e.g. when restoring the database).\nAre you sure?"),
_("Confirm superuser deletion"),
- if (dlg.ShowModal() != wxYES)
+ if (dlg.ShowModal() != wxID_YES)

0 comments on commit 6f8b585

Please sign in to comment.