From: Dirk Bartley Date: Thu, 11 Feb 2010 07:14:23 +0000 (+0100) Subject: Fix pages not in focus X-Git-Tag: Release-5.2.1~1778 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18ed30b45c2dc70cd0eb9d7da1318a25f2163f90;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()