/* 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;
}
{
int conn;
bool donotify = false;
- if (m_console->availableDirComm(conn)) {
+ if (m_console->getDirComm(conn)) {
if (m_console->is_notify_enabled(conn)) {
donotify = true;
m_console->notify(conn, false);