Index: pgadmin/agent/dlgStep.cpp
===================================================================
--- pgadmin/agent/dlgStep.cpp	(révision 7976)
+++ pgadmin/agent/dlgStep.cpp	(copie de travail)
@@ -84,6 +84,8 @@
 
 int dlgStep::Go(bool modal)
 {
+    int returncode;
+
     hasConnStrSupport = connection->TableHasColumn(wxT("pgagent"), wxT("pga_jobstep"), wxT("jstconnstr"));
     cbDatabase->Append(wxT(" "));
     cbDatabase->SetSelection(0);
@@ -139,7 +141,14 @@
             rbLocalConn->Enable(false);
     }
 
-	return dlgProperty::Go(modal);
+	returncode = dlgProperty::Go(modal);
+
+    if (nbNotebook->GetPageCount() == 3)
+    {
+        SetSqlReadOnly(true);
+    }
+
+    return returncode;
 }
 
 
Index: pgadmin/agent/dlgSchedule.cpp
===================================================================
--- pgadmin/agent/dlgSchedule.cpp	(révision 7976)
+++ pgadmin/agent/dlgSchedule.cpp	(copie de travail)
@@ -114,6 +114,8 @@
 
 int dlgSchedule::Go(bool modal)
 {
+    int returncode;
+
     if (schedule)
     {
         // edit mode
@@ -196,7 +198,14 @@
         // create mode
     }
 
-	return dlgProperty::Go(modal);
+	returncode = dlgProperty::Go(modal);
+
+    if (nbNotebook->GetPageCount() == 5)
+    {
+        SetSqlReadOnly(true);
+    }
+
+    return returncode;
 }
 
 
