From 5e3b06b13d8eb708a3c6bd7b9321af1bc32690fc Mon Sep 17 00:00:00 2001 From: Dirk Bartley Date: Thu, 11 Feb 2010 08:14:23 +0100 Subject: [PATCH] Fix pages not in focus --- bacula/src/qt-console/mainwin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- 2.39.5