QTfrontend/ui/page/pageplayrecord.cpp
changeset 7000 d22633829ac8
parent 6952 7f70f37bbf08
child 7130 fcab1fd02bc6
--- a/QTfrontend/ui/page/pageplayrecord.cpp	Wed May 02 16:36:11 2012 +0100
+++ b/QTfrontend/ui/page/pageplayrecord.cpp	Wed May 02 19:36:23 2012 +0200
@@ -16,6 +16,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
+#include "pageplayrecord.h"
+
 #include <QFont>
 #include <QGridLayout>
 #include <QPushButton>
@@ -26,7 +28,8 @@
 #include <QInputDialog>
 
 #include "hwconsts.h"
-#include "pageplayrecord.h"
+
+#include "DataManager.h"
 
 QLayout * PagePlayDemo::bodyLayoutDefinition()
 {
@@ -61,6 +64,7 @@
 {
     connect(BtnRenameRecord, SIGNAL(clicked()), this, SLOT(renameRecord()));
     connect(BtnRemoveRecord, SIGNAL(clicked()), this, SLOT(removeRecord()));
+    connect(&DataManager::instance(), SIGNAL(updated()), this, SLOT(refresh()));
 }
 
 PagePlayDemo::PagePlayDemo(QWidget* parent) : AbstractPage(parent)
@@ -103,6 +107,14 @@
     }
 }
 
+
+void PagePlayDemo::refresh()
+{
+    if (this->isVisible());
+        FillFromDir(recType);
+}
+
+
 void PagePlayDemo::renameRecord()
 {
     QListWidgetItem * curritem = DemosList->currentItem();