git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1472 
91ce42f0-d328-0410-95d8-
f526ca767f89
 
+16-07-2004 :
+ - wxbRestorePanel : Fixed crash when an error occurs while querying
+    restore list (reported by Dan Langille).
+
 15-07-2004 :
  - wxbMainFrame : When an unexpected question is in this format 
     (***? (yes/mod/no):), a list is shown to choose one of these 
 
                delete dt;
                return;
             }
+            else if (((*dt)[i].Index("ERROR") > -1) || ((*dt)[i].Index("Query failed") > -1)) {
+               configPanel->AddRowChoice("Before", "Cannot get previous backups list, see console.");
+               configPanel->SetRowSelection("Before", 0);
+               configPanel->EnableApply(true); // Enabling the not existing apply button disables the ok button.
+               delete tableparser;
+               delete dt;
+               return;
+            }
          }
       }