From 94a650b1444d41123f75ed0b7e85440ba2f8fe91 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Mon, 7 May 2007 14:50:54 +0000 Subject: [PATCH] Should prevent a page from coming to the front that has not yet been populated when doing a restore. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4721 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/restore/prerestore.cpp | 1 + bacula/src/qt-console/restore/restore.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/bacula/src/qt-console/restore/prerestore.cpp b/bacula/src/qt-console/restore/prerestore.cpp index 80cfc2ef88..22937db684 100644 --- a/bacula/src/qt-console/restore/prerestore.cpp +++ b/bacula/src/qt-console/restore/prerestore.cpp @@ -110,6 +110,7 @@ void prerestorePage::okButtonPushed() consoleCommand(cmd); /* Note, do not turn notifier back on here ... */ if (selectFilesRadio->isChecked()) { + setConsoleCurrent(); new restorePage(); closeStackPage(); } else { diff --git a/bacula/src/qt-console/restore/restore.cpp b/bacula/src/qt-console/restore/restore.cpp index f8107f1c68..b6480079f4 100644 --- a/bacula/src/qt-console/restore/restore.cpp +++ b/bacula/src/qt-console/restore/restore.cpp @@ -228,6 +228,7 @@ void restorePage::okButtonPushed() this->hide(); m_console->write("done"); m_console->notify(true); + setConsoleCurrent(); closeStackPage(); mainWin->resetFocus(); } -- 2.39.5