From: Dirk H Bartley Date: Fri, 31 Jul 2009 18:30:59 +0000 (+0000) Subject: Don't dock the page for dirstat and restore tree until the page selector tree widget is X-Git-Tag: Release-5.0.0~424 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29b4c0a0408c454bb6751a55bfdfbf646cf521e5;p=bacula%2Fbacula 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 --- 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(); } /*