- wxbMainFrame : corrected segmentation faults when exiting (to be verified)
- wxbMainFrame : the user can quit however the state is
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1334
91ce42f0-d328-0410-95d8-
f526ca767f89
+31-04-2004 :
+ - wxbMainFrame : If the connection drops unexpectedly, it should say
+ it lost the connection to the Director and then wait for you to
+ either manually exit or (when it becomes possible) reconnect.
+ - wxbMainFrame : corrected segmentation faults when exiting
+ (to be verified)
+ - wxbMainFrame : the user can quit however the state is
+
30-04-2004 :
- wxbRestorePanel : Added "Cancel" button to cancel restore at
all state of restore process.
wxbRestorePanel : Reconsider start button's labels.
-wxbRestorePanel : Add titles to configuration panel
+wxbRestorePanel : Add titles to configuration panels
wxbRestorePanel : When cancelling, check for commands results
general : Show nice messages boxes when errors occurs.
-general : Allow the user to quit however the state is (kill thread if necessary)
-
-general : correct segmentation faults when exiting
-
[postponed to July:]
-wxbRestorePanel : Add a way to cancel restore when building tree (needs director modifications)
+wxbRestorePanel : Add a way to cancel restore when building tree
+ (needs director modifications)
wxbMainFrame : set focus to type control when clicking on console
global : create a general class which keeps clients, jobs, filesets, pools... list.
+wxbConfigPanel : Create a dialog for selecting dates and paths.
+
wxbMainFrame : use more often status text
wxbRestorePanel : Ask Kern for a dot command which gives restore
bnet_sig(UA_sock, BNET_TERMINATE); /* send EOF */
bnet_close(UA_sock);
UA_sock = NULL;
+ csprint(NULL, CS_END);
+ csprint(NULL, CS_DISCONNECTED);
+ csprint(NULL, CS_TERMINATED);
}
}
void wxbMainFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
- // TRUE is to force the frame to close
+ Print("Quitting.\n", CS_DEBUG);
+ if (ct != NULL) {
+ ct->Delete();
+ ct = NULL;
+ }
Close(TRUE);
}
SetStatusText("Console thread terminated.");
ct = NULL;
DisablePanels();
+ int answer = wxMessageBox("Connection to the director lost. Quit program?", "Connection lost",
+ wxYES_NO | wxICON_EXCLAMATION, this);
+ if (answer == wxYES) {
+ Close(true);
+ }
return;
}
/* Enable or disable console typing */
void wxbMainFrame::EnableConsole(bool enable) {
typeCtrl->Enable(enable);
+ sendButton->Enable(enable);
if (enable) {
typeCtrl->SetFocus();
}