SVN Commit by andreas: r4315 - trunk/pgadmin3/src/agent

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4315 - trunk/pgadmin3/src/agent
Date: 2005-06-17 21:03:09
Message-ID: 200506172103.j5HL39mJ009467@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Author: andreas
Date: 2005-06-17 22:03:09 +0100 (Fri, 17 Jun 2005)
New Revision: 4315

Modified:
trunk/pgadmin3/src/agent/dlgSchedule.cpp
Log:
change exception

Modified: trunk/pgadmin3/src/agent/dlgSchedule.cpp
===================================================================
--- trunk/pgadmin3/src/agent/dlgSchedule.cpp 2005-06-17 18:54:09 UTC (rev 4314)
+++ trunk/pgadmin3/src/agent/dlgSchedule.cpp 2005-06-17 21:03:09 UTC (rev 4315)
@@ -226,8 +226,31 @@

void dlgSchedule::OnSelChangeException(wxListEvent &ev)
{
- btnChangeException->Enable();
- btnRemoveException->Enable();
+ int sel=lstExceptions->GetSelection();
+ if (sel >= 0)
+ {
+ wxString exDate=lstExceptions->GetText(sel, 0);
+ wxString exTime=lstExceptions->GetText(sel, 1);
+ wxDateTime val, null;
+
+ if (exDate == _("<any>"))
+ calException->SetValue(null);
+ else
+ {
+ val.ParseDate(exDate);
+ calException->SetValue(val);
+ }
+ if (exTime == _("<any>"))
+ timException->SetTime(null);
+ else
+ {
+ val.ParseTime(exTime);
+ timException->SetTime(val);
+ }
+
+ btnChangeException->Enable();
+ btnRemoveException->Enable();
+ }
}

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2005-06-17 22:07:53 SVN Commit by andreas: r4316 - in trunk/pgadmin3/docs: . de_DE de_DE/hints en_US/hints
Previous Message svn 2005-06-17 17:17:22 SVN Commit by andreas: r4312 - trunk/pgadmin3/xtra/pgagent