Обсуждение: pgAdmin III commit: Fix the check status after closing a message box

Поиск
Список
Период
Сортировка

pgAdmin III commit: Fix the check status after closing a message box

От
Guillaume Lelarge
Дата:
Fix the check status after closing a message box

The status has three possible values: YES, NO, and CANCEL. Most of the code
assume that the user clicks NO, and so the code checks for NO. But the user
can cancel the dialog, and as te code checks for NO, the code continues to
execute just as if the user clicked OK: table truncated, connection closed,
query killed without the explicit order of the user.

Patch from nikicat (https://github.com/nikicat), heavily changed by me.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=336f93afb80a3e8b993d497c8494c279a6f0a3f5

Modified Files
--------------
pgadmin/debugger/ctlCodeWindow.cpp |    2 +-
pgadmin/dlg/dlgDomain.cpp          |    2 +-
pgadmin/dlg/dlgIndex.cpp           |    2 +-
pgadmin/dlg/dlgIndexConstraint.cpp |    2 +-
pgadmin/dlg/dlgProperty.cpp        |    8 ++++----
pgadmin/dlg/dlgRole.cpp            |    2 +-
pgadmin/dlg/dlgTable.cpp           |    6 +++---
pgadmin/dlg/dlgTrigger.cpp         |    2 +-
pgadmin/frm/frmBackup.cpp          |    4 ++--
pgadmin/frm/frmBackupGlobals.cpp   |    4 ++--
pgadmin/frm/frmBackupServer.cpp    |    4 ++--
pgadmin/frm/frmMain.cpp            |    4 ++--
pgadmin/frm/frmQuery.cpp           |    2 +-
pgadmin/frm/frmReport.cpp          |    2 +-
pgadmin/frm/frmRestore.cpp         |    2 +-
pgadmin/frm/frmStatus.cpp          |   12 ++++++------
pgadmin/schema/pgFunction.cpp      |    2 +-
pgadmin/schema/pgRole.cpp          |    4 ++--
pgadmin/schema/pgTable.cpp         |   10 +++++-----
19 files changed, 38 insertions(+), 38 deletions(-)