From: guillaume Date: Sun, 19 Jul 2009 21:39:09 +0000 (+0000) Subject: Fix schedule and step dialogs [Ashesh Vashi, Guillaume Lelarge]. X-Git-Url: http://git.postgresql.org/gitweb/static/%7B%7Bpguslink%28?a=commitdiff_plain;h=cb5c56b5ee90cc4c6480ae7f1d025171def6548a;p=users%2Fquan74%2Fpgadmin-import.git Fix schedule and step dialogs [Ashesh Vashi, Guillaume Lelarge]. git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7973 a7884b65-44f6-0310-8a51-81a127f17b15 --- diff --git a/CHANGELOG b/CHANGELOG index 22183eb4c..ec2e38bec 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -36,6 +36,8 @@ Changes Date Dev Ver Change details ---------- --- ------ -------------- +2009-07-19 GL 1.10.1 Fix schedule and step dialogs [Ashesh Vashi, Guillaume + Lelarge]. 2009-07-07 GL 1.10.1 Fix macros writing, per report from Mauro Bertoli. 2009-07-07 DP 1.12.0 Cache datatypes in dlgTable, so they don't have to be reloaded by dlgColumn, which may be used multiple times diff --git a/pgadmin/agent/dlgSchedule.cpp b/pgadmin/agent/dlgSchedule.cpp index b6b889404..0efcce9c2 100644 --- a/pgadmin/agent/dlgSchedule.cpp +++ b/pgadmin/agent/dlgSchedule.cpp @@ -114,8 +114,6 @@ void dlgSchedule::OnChangeSize(wxSizeEvent &ev) int dlgSchedule::Go(bool modal) { - int returncode; - if (schedule) { // edit mode @@ -198,11 +196,7 @@ int dlgSchedule::Go(bool modal) // create mode } - returncode = dlgProperty::Go(modal); - - SetSqlReadOnly(true); - - return returncode; + return dlgProperty::Go(modal); } diff --git a/pgadmin/agent/dlgStep.cpp b/pgadmin/agent/dlgStep.cpp index b32af1b01..0bb8cef07 100644 --- a/pgadmin/agent/dlgStep.cpp +++ b/pgadmin/agent/dlgStep.cpp @@ -84,8 +84,6 @@ pgObject *dlgStep::GetObject() int dlgStep::Go(bool modal) { - int returncode; - hasConnStrSupport = connection->TableHasColumn(wxT("pgagent"), wxT("pga_jobstep"), wxT("jstconnstr")); cbDatabase->Append(wxT(" ")); cbDatabase->SetSelection(0); @@ -141,11 +139,7 @@ int dlgStep::Go(bool modal) rbLocalConn->Enable(false); } - returncode = dlgProperty::Go(modal); - - SetSqlReadOnly(true); - - return returncode; + return dlgProperty::Go(modal); }