Log Message:
-----------
Enable the OK button when editting steps or schedules from dlgJob
Modified Files:
--------------
pgadmin3/src/agent:
dlgJob.cpp (r1.18 -> r1.19)
Index: dlgJob.cpp
===================================================================
RCS file: /projects/pgadmin3/src/agent/dlgJob.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -Lsrc/agent/dlgJob.cpp -Lsrc/agent/dlgJob.cpp -u -w -r1.18 -r1.19
--- src/agent/dlgJob.cpp
+++ src/agent/dlgJob.cpp
@@ -209,7 +209,7 @@
void dlgJob::CheckChange()
{
- bool enable=true;
+ bool enable=true, foundone = false;
wxString name=GetName();
if (job)
{
@@ -221,10 +221,22 @@
enable = !GetUpdateSql().IsEmpty();
}
}
- else
+
+ long pos;
+ for (pos=0 ; pos < lstSteps->GetItemCount() ; pos++)
{
+ if(lstSteps->GetItemData(pos))
+ foundone = true;
+ }
+ for (pos=0 ; pos < lstSchedules->GetItemCount() ; pos++)
+ {
+ if(lstSchedules->GetItemData(pos))
+ foundone = true;
}
+ if (foundone)
+ enable = true;
+
CheckValid(enable, !name.IsEmpty(), _("Please specify name."));
EnableOK(enable);
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match