]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #443 (Thanks to "over" for the patch)
authorNicolas Boichat <nicolas@boichat.ch>
Sat, 15 Oct 2005 17:38:03 +0000 (17:38 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sat, 15 Oct 2005 17:38:03 +0000 (17:38 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2446 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/wxbrestorepanel.cpp

index 48d20906f7528b0d10248c7803b42eb81cf2f900..2d57cff65b3e88e3bb94be05239b1d0e984e6bf9 100644 (file)
@@ -1260,11 +1260,13 @@ void wxbRestorePanel::CmdListJobs() {
       
       delete dt;
 
+      wxDateTime lastdatetime = (time_t) 0;
       for (int i = tableparser->GetCount()-1; i > -1; i--) {
          wxString str = (*tableparser)[i][3];
          wxDateTime datetime;
          const wxChar* chr;
-         if ( ( (chr = datetime.ParseDate(str.GetData()) ) != NULL ) && ( datetime.ParseTime(++chr) != NULL ) ) {
+         if ( ( (chr = datetime.ParseDate(str.GetData()) ) != NULL ) && ( datetime.ParseTime(++chr) != NULL ) && ! lastdatetime.IsEqualTo(datetime) ) {
+            lastdatetime = datetime;
             datetime += wxTimeSpan::Seconds(1);
             configPanel->AddRowChoice(_("Before"),
                datetime.Format(wxT("%Y-%m-%d %H:%M:%S")));