From: Dirk H Bartley Date: Mon, 7 May 2007 14:50:54 +0000 (+0000) Subject: Should prevent a page from coming to the front that has not yet been populated X-Git-Tag: Release-7.0.0~6410 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94a650b1444d41123f75ed0b7e85440ba2f8fe91;p=bacula%2Fbacula 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 --- 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(); }