/* Set docked flag */
m_docked = true;
+ m_onceDocked = true;
mainWin->tabWidget->setCurrentWidget(this);
/* lets set the page selectors action for docking or undocking */
setContextMenuDockText();
-
}
/*
return m_docked;
}
+/*
+ * This function is because after the tabbed widget was added I could not tell
+ * from is docked if it had been docked yet. To prevent status pages from requesting
+ * status from the director
+ */
+bool Pages::isOnceDocked()
+{
+ return m_onceDocked;
+}
+
+
/*
* To keep m_closeable protected as well
*/
void Pages::pgInitialize(const QString &tname, QTreeWidgetItem *parentTreeWidgetItem)
{
m_docked = false;
+ m_onceDocked = false;
if (tname.size()) {
m_name = tname;
}
if (value == 0) {
value = spinBox->value();
bool iscurrent = mainWin->tabWidget->currentIndex() == mainWin->tabWidget->indexOf(this);
- if (((isDocked() && iscurrent) || (!isDocked())) && (checkBox->checkState() == Qt::Checked)) {
+ if (((isDocked() && iscurrent) || ((!isDocked()) && isOnceDocked())) && (checkBox->checkState() == Qt::Checked)) {
populateAll();
}
}