]> git.sur5r.net Git - bacula/bacula/commitdiff
I was unable to think of a more elegent solution to an issue of a popup coming up...
authorDirk H Bartley <dbartley@schupan.com>
Wed, 23 Jul 2008 02:50:02 +0000 (02:50 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Wed, 23 Jul 2008 02:50:02 +0000 (02:50 +0000)
the media list window was first clicked.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7418 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/medialist/medialist.cpp
bacula/src/qt-console/medialist/medialist.h

index 57e9683e49cff280c19706d2d0ff583d5edcd66c..7ce47962ea6af073a21afb781d7ba9548a8fa8e6 100644 (file)
@@ -76,6 +76,9 @@ MediaList::~MediaList()
  */
 void MediaList::populateTree()
 {
+   if (m_populating)
+      return;
+   m_populating = true;
    QTreeWidgetItem *pooltreeitem;
 
    if (!m_console->preventInUseConnect())
@@ -218,6 +221,7 @@ void MediaList::populateTree()
    for(int cnter=0; cnter<headerlist.count(); cnter++) {
       mp_treeWidget->resizeColumnToContents(cnter);
    }
+   m_populating = false;
 }
 
 /*
index f51f565e3bdea9230a6c40fa06c87a4fb88e3778..2fec22fb7663806cfdbfecf36bb1c9944ab4ba8a 100644 (file)
@@ -69,6 +69,7 @@ private:
    QString m_currentVolumeName;
    QString m_currentVolumeId;
    bool m_populated;
+   bool m_populating;
    bool m_checkcurwidget;
    QTreeWidgetItem *m_topItem;
 };