From 3361ff23673d46ed3a852d66340b93f9fbb9076a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 27 Feb 2007 17:15:14 +0000 Subject: [PATCH] Fix restore crash git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4276 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/README | 7 ++++--- bacula/src/qt-console/restore/restore.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bacula/src/qt-console/README b/bacula/src/qt-console/README index 90b0baca34..eb91670ffb 100644 --- a/bacula/src/qt-console/README +++ b/bacula/src/qt-console/README @@ -51,9 +51,10 @@ Items not implemented: - The Label menu bar item, prints on the shell window what you entered. - The Run menu bar item, prints on the console window what you entered. - The Restore menu bar item, brings up dialog, then when OK is - clicked, it goes on to the next dialog (oops, it seems to crash - now -- will fix soon). - + clicked, it goes on to the next dialog, which is meant to be + a tree view, but for the moment does nothing ... It is a bit + ugly. Cancelling it should get you back to the normal command prompt. + Not working: - The left selection window and the right window (where the console is) are dockable windows so should be movable once they are properly diff --git a/bacula/src/qt-console/restore/restore.cpp b/bacula/src/qt-console/restore/restore.cpp index f6185b746b..9addf96d30 100644 --- a/bacula/src/qt-console/restore/restore.cpp +++ b/bacula/src/qt-console/restore/restore.cpp @@ -70,8 +70,8 @@ void prerestoreDialog::accept() m_console->write(cmd); m_console->display_text(cmd); - delete this; new restoreDialog(m_console); + delete this; } -- 2.39.5