From fed9239f8d9b1a7f69f4113d8b27ea4288b417f9 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Sat, 15 Oct 2005 17:38:03 +0000 Subject: [PATCH] Fix bug #443 (Thanks to "over" for the patch) git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2446 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/wxbrestorepanel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bacula/src/wx-console/wxbrestorepanel.cpp b/bacula/src/wx-console/wxbrestorepanel.cpp index 48d20906f7..2d57cff65b 100644 --- a/bacula/src/wx-console/wxbrestorepanel.cpp +++ b/bacula/src/wx-console/wxbrestorepanel.cpp @@ -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"))); -- 2.39.5