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