From 11b38f4019b3ac09ccbd05385d7056676288ea4c Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Sat, 28 Apr 2007 04:32:36 +0000 Subject: [PATCH] Fix bugs 819 and 837 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4642 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/wxbrestorepanel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/wx-console/wxbrestorepanel.cpp b/bacula/src/wx-console/wxbrestorepanel.cpp index 87d50ffffd..e608b6492f 100644 --- a/bacula/src/wx-console/wxbrestorepanel.cpp +++ b/bacula/src/wx-console/wxbrestorepanel.cpp @@ -807,9 +807,9 @@ void wxbRestorePanel::CmdStart() int j; for (i = 0; i < dt->GetCount(); i++) { - if ((j = (*dt)[i].Find(_("Job started. JobId="))) > -1) { + if ((j = (*dt)[i].Find(_("Job queued. JobId="))) > -1) { jobid = (*dt)[i].Mid(j+19); - wxbMainFrame::GetInstance()->SetStatusText(_("Restore started, jobid=") + jobid); + wxbMainFrame::GetInstance()->SetStatusText(_("Restore queued, jobid=") + jobid); break; } @@ -1888,6 +1888,7 @@ bool wxbRestorePanel::UpdateSecondConfig(wxbDataTokenizer* dt) { restorePanel->SetRowString(_("Storage"), (*dt)[i].Mid(10).Trim(false).RemoveLast()); if ((k = (*dt)[++i].Find(_("When:"))) != 0) return false; restorePanel->SetRowString(_("When"), (*dt)[i].Mid(10).Trim(false).RemoveLast()); + i++; /* Skip catalog field */ if ((k = (*dt)[++i].Find(_("Priority:"))) != 0) return false; restorePanel->SetRowString(_("Priority"), (*dt)[i].Mid(10).Trim(false).RemoveLast()); cfgUpdated = 0; -- 2.39.5