/* tableWidget, Storage Tree Tree Widget inherited from ui_client.h */
m_populated = false;
+ m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
/* add context sensitive menu items specific to this classto the page
*/
void Clients::populateTable()
{
- QBrush blackBrush(Qt::black);
+ if (m_populating)
+ return;
+ m_populating = true;
if (!m_console->preventInUseConnect())
return;
+ QBrush blackBrush(Qt::black);
+
QStringList headerlist = (QStringList() << tr("Client Name") << tr("File Retention")
<< tr("Job Retention") << tr("AutoPrune") << tr("ClientId") << tr("Uname") );
/* Resize rows and columns */
tableWidget->resizeColumnsToContents();
tableWidget->resizeRowsToContents();
+ m_populating = false;
}
/*
void createContextMenu();
QString m_currentlyselected;
bool m_populated;
+ bool m_populating;
bool m_checkcurwidget;
};
/* tableWidget, FileSet Tree Tree Widget inherited from ui_fileset.h */
m_populated = false;
+ m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
readSettings();
*/
void FileSet::populateTable()
{
- QBrush blackBrush(Qt::black);
+ if (m_populating)
+ return;
+ m_populating = true;
if (!m_console->preventInUseConnect())
return;
+ QBrush blackBrush(Qt::black);
+
m_checkcurwidget = false;
tableWidget->clear();
m_checkcurwidget = true;
/* Resize rows and columns */
tableWidget->resizeColumnsToContents();
tableWidget->resizeRowsToContents();
+ m_populating = false;
}
/*
void createContextMenu();
QString m_currentlyselected;
bool m_populated;
+ bool m_populating;
bool m_checkcurwidget;
};
m_resultCount = 0;
m_populated = false;
+ m_populating = false;
m_closeable = false;
if ((m_mediaName != "") || (m_clientName != "") || (m_jobName != "") || (m_filesetName != ""))
m_closeable=true;
*/
void JobList::populateTable()
{
+ if (m_populating)
+ return;
+ m_populating = true;
if (!m_console->preventInUseConnect())
return;
tr("The Jobs query returned no results.\n"
"Press OK to continue?"), QMessageBox::Ok );
}
+ m_populating = false;
}
void JobList::prepareFilterWidgets()
QString m_filesetName;
QString m_currentJob;
bool m_populated;
+ bool m_populating;
bool m_checkCurrentWidget;
int m_jobIdIndex;
int m_purgedIndex;
/* tableWidget, Storage Tree Tree Widget inherited from ui_client.h */
m_populated = false;
+ m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
/* add context sensitive menu items specific to this classto the page
*/
void Jobs::populateTable()
{
- QBrush blackBrush(Qt::black);
-
+ if (m_populating)
+ return;
+ m_populating = true;
if (!m_console->preventInUseConnect())
return;
+ QBrush blackBrush(Qt::black);
m_checkcurwidget = false;
tableWidget->clear();
m_checkcurwidget = true;
/* Resize rows and columns */
tableWidget->resizeColumnsToContents();
tableWidget->resizeRowsToContents();
+ m_populating = true;
}
/*
void createContextMenu();
QString m_currentlyselected;
bool m_populated;
+ bool m_populating;
bool m_checkcurwidget;
int m_typeIndex;
};
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_medialist.h */
m_populated = false;
+ m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
/* add context sensitive menu items specific to this classto the page
/* mp_treeWidget, Storage Tree Tree Widget inherited from ui_storage.h */
m_populated = false;
+ m_populating = false;
m_checkcurwidget = true;
m_closeable = false;
m_currentStorage = "";
*/
void Storage::populateTree()
{
+ if (m_populating)
+ return;
+ m_populating = true;
if (!m_console->preventInUseConnect())
return;
for(int cnter=0; cnter<headerlist.size(); cnter++) {
mp_treeWidget->resizeColumnToContents(cnter);
}
+ m_populating = false;
}
void Storage::mediaList(QTreeWidgetItem *parent, const QString &storageID)
{
QString m_currentStorage;
bool m_currentAutoChanger;
bool m_populated;
+ bool m_populating;
bool m_checkcurwidget;
void writeExpandedSettings();
QTreeWidgetItem *m_topItem;