From: Dirk Bartley Date: Thu, 11 Feb 2010 07:14:23 +0000 (+0100) Subject: Fix pages not in focus X-Git-Tag: Release-5.0.1~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b52f26a591f812249ba154e89ff049192944dfca;p=bacula%2Fbacula Fix pages not in focus --- diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index e72cd7562a..00261525c3 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -517,6 +517,9 @@ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *pre } /* set the value for the currently active console */ int stackindex = tabWidget->indexOf(nextPage); + if (!nextPage->isDocked()) { + nextPage->dockPage(); + } /* Is this page currently on the stack or is it undocked */ if (stackindex >= 0) { @@ -572,8 +575,9 @@ void MainWin::statusPageButtonClicked() } } } - if (!found) + if (!found) { new DirStat(); + } } void MainWin::restoreButtonClicked()