From 29b4c0a0408c454bb6751a55bfdfbf646cf521e5 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Fri, 31 Jul 2009 18:30:59 +0000 Subject: [PATCH] Don't dock the page for dirstat and restore tree until the page selector tree widget is clicked. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9138 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/restore/restoretree.cpp | 7 ++++++- bacula/src/qt-console/restore/restoretree.h | 1 + bacula/src/qt-console/status/dirstat.cpp | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bacula/src/qt-console/restore/restoretree.cpp b/bacula/src/qt-console/restore/restoretree.cpp index 9e83c17945..1dc8c5cb16 100644 --- a/bacula/src/qt-console/restore/restoretree.cpp +++ b/bacula/src/qt-console/restore/restoretree.cpp @@ -50,7 +50,6 @@ restoreTree::restoreTree() m_closeable = true; m_populated = false; - dockPage(); m_debugCnt = 0; m_debugTrap = true; @@ -1857,3 +1856,9 @@ int restoreTree::queryFileIndex(QString &fullPath, int jobId) } /* if (index != -1) */ return qfileIndex; } + + +void restoreTree::PgSeltreeWidgetClicked() +{ + dockPage(); +} diff --git a/bacula/src/qt-console/restore/restoretree.h b/bacula/src/qt-console/restore/restoretree.h index d4b597386d..ea9baae6fa 100644 --- a/bacula/src/qt-console/restore/restoretree.h +++ b/bacula/src/qt-console/restore/restoretree.h @@ -49,6 +49,7 @@ class restoreTree : public Pages, public Ui::restoreTreeForm public: restoreTree(); ~restoreTree(); + virtual void PgSeltreeWidgetClicked(); virtual void currentStackItem(); enum folderCheckState { diff --git a/bacula/src/qt-console/status/dirstat.cpp b/bacula/src/qt-console/status/dirstat.cpp index de63951978..890b07c175 100644 --- a/bacula/src/qt-console/status/dirstat.cpp +++ b/bacula/src/qt-console/status/dirstat.cpp @@ -55,8 +55,6 @@ DirStat::DirStat() createConnections(); setCurrent(); - - dockPage(); } void DirStat::getFont() @@ -288,6 +286,7 @@ void DirStat::PgSeltreeWidgetClicked() populateAll(); m_populated=true; } + dockPage(); } /* -- 2.39.5