From 4d95c6ad8fb88e9acc3343fe4c63030e2ca2c45c Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sat, 1 Aug 2009 22:01:37 +0000 Subject: [PATCH] found a bug. Joblist page would not come up unless dockPage was called when page was opened with initial paramaters. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9152 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/joblist/joblist.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/joblist/joblist.cpp b/bacula/src/qt-console/joblist/joblist.cpp index a52119d3f5..59c95f0378 100644 --- a/bacula/src/qt-console/joblist/joblist.cpp +++ b/bacula/src/qt-console/joblist/joblist.cpp @@ -64,8 +64,9 @@ JobList::JobList(const QString &mediaName, const QString &clientName, m_resultCount = 0; m_populated = false; m_closeable = false; - if ((m_mediaName != "") || (m_clientName != "") || (m_jobName != "") || (m_filesetName != "")) + if ((m_mediaName != "") || (m_clientName != "") || (m_jobName != "") || (m_filesetName != "")) { m_closeable=true; + } m_checkCurrentWidget = true; /* Set Defaults for check and spin for limits */ @@ -90,6 +91,7 @@ JobList::JobList(const QString &mediaName, const QString &clientName, gridLayout->addWidget(m_splitter, 0, 0, 1, 1); createConnections(); readSettings(); + if (m_closeable) { dockPage(); } } /* @@ -409,7 +411,7 @@ void JobList::createConnections() #endif /* for the selectionChanged to maintain m_currentJob and a delete selection */ connect(mp_tableWidget, SIGNAL(itemSelectionChanged()), this, SLOT(selectionChanged())); - connect(mp_tableWidget, SIGNAL(itemDoubleClicked()), this, SLOT(showInfoForJob())); + connect(mp_tableWidget, SIGNAL(itemDoubleClicked(QTableWidgetItem*)), this, SLOT(showInfoForJob())); /* Do what is required for the local context sensitive menu */ -- 2.39.5