}
returncode = dlgProperty::Go(modal);
+
+ SetSqlReadOnly(true);
// This fixes a UI glitch on MacOS X
// Because of the new layout code, the Columns pane doesn't size itself properly
int dlgSchedule::Go(bool modal)
{
+ int returncode;
if (schedule)
{
// create mode
}
- return dlgProperty::Go(modal);
+ returncode = dlgProperty::Go(modal);
+
+ SetSqlReadOnly(true);
+
+ return returncode;
}
int dlgStep::Go(bool modal)
{
+ int returncode;
+
hasConnStrSupport = connection->TableHasColumn(wxT("pgagent"), wxT("pga_jobstep"), wxT("jstconnstr"));
cbDatabase->Append(wxT(" "));
cbDatabase->SetSelection(0);
rbLocalConn->Enable(false);
}
- return dlgProperty::Go(modal);
+ returncode = dlgProperty::Go(modal);
+
+ SetSqlReadOnly(true);
+
+ return returncode;
}
}
+void dlgProperty::SetSqlReadOnly(bool readonly)
+{
+ chkReadOnly->Enable(!readonly);
+}
+
+
void dlgSecurityProperty::SetPrivilegesLayout()
{
securityPage->lbPrivileges->GetParent()->Layout();
~dlgProperty();
void EnableOK(bool enable);
+ void SetSqlReadOnly(bool readonly);
virtual bool IsUpToDate() { return true; };
void ShowObject();