]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bugs 819 and 837
authorRobert Nelson <robertn@the-nelsons.org>
Sat, 28 Apr 2007 04:32:36 +0000 (04:32 +0000)
committerRobert Nelson <robertn@the-nelsons.org>
Sat, 28 Apr 2007 04:32:36 +0000 (04:32 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4642 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/wxbrestorepanel.cpp

index 87d50ffffd26252f055d3c39d4a420db379bfaa6..e608b6492f5c7998d7f37cc828aaaf08246dbfbb 100644 (file)
@@ -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;