]> 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 09a9def72b60befac52ee7a4a5967b958b116bf5..ff30579a8240665625193e58caf015543a997959 100644 (file)
@@ -72,10 +72,11 @@ Clients::~Clients()
  */
 void Clients::populateTable()
 {
-   QBrush blackBrush(Qt::black);
-
    if (!m_console->preventInUseConnect())
       return;
+   m_populated = true;
+
+   QBrush blackBrush(Qt::black);
 
    QStringList headerlist = (QStringList() << tr("Client Name") << tr("File Retention")
        << tr("Job Retention") << tr("AutoPrune") << tr("ClientId") << tr("Uname") );
@@ -167,7 +168,6 @@ void Clients::PgSeltreeWidgetClicked()
 {
    if(!m_populated) {
       populateTable();
-      m_populated=true;
    }
 }
 
@@ -262,7 +262,6 @@ void Clients::currentStackItem()
    if(!m_populated) {
       populateTable();
       /* Create the context menu for the client table */
-      m_populated=true;
    }
 }