From: Dirk H Bartley Date: Sat, 1 Aug 2009 22:01:37 +0000 (+0000) Subject: found a bug. Joblist page would not come up unless dockPage was called when X-Git-Tag: Release-5.0.0~410 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2063823b9ade0cd79a7d3cbc9b80858e25fe20d;p=bacula%2Fbacula 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 --- 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 */