]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/clients/clients.cpp
ebl Add more tests in migration time test (like for copy time test)
[bacula/bacula] / bacula / src / qt-console / clients / clients.cpp
index ce4b25dd5604a3f606a2a3f1e2c04db4df521f94..ff30579a8240665625193e58caf015543a997959 100644 (file)
@@ -53,7 +53,6 @@ Clients::Clients()
 
    /* 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
@@ -73,12 +72,9 @@ Clients::~Clients()
  */
 void Clients::populateTable()
 {
-   if (m_populating)
-      return;
-   m_populating = true;
-
    if (!m_console->preventInUseConnect())
       return;
+   m_populated = true;
 
    QBrush blackBrush(Qt::black);
 
@@ -162,7 +158,6 @@ void Clients::populateTable()
    /* Resize rows and columns */
    tableWidget->resizeColumnsToContents();
    tableWidget->resizeRowsToContents();
-   m_populating = false;
 }
 
 /*
@@ -173,7 +168,6 @@ void Clients::PgSeltreeWidgetClicked()
 {
    if(!m_populated) {
       populateTable();
-      m_populated=true;
    }
 }
 
@@ -268,7 +262,6 @@ void Clients::currentStackItem()
    if(!m_populated) {
       populateTable();
       /* Create the context menu for the client table */
-      m_populated=true;
    }
 }