QTfrontend/hwform.h
changeset 6190 1db2486e45f4
parent 6165 6fe3e922246e
child 6205 7764cbe4ddd7
--- a/QTfrontend/hwform.h	Sun Oct 23 01:47:44 2011 -0400
+++ b/QTfrontend/hwform.h	Sun Oct 23 09:01:53 2011 +0200
@@ -20,6 +20,7 @@
 #define HWFORM_H
 
 #include <QMainWindow>
+#include <QMutex>
 #include <QStack>
 #include <QTime>
 
@@ -168,12 +169,13 @@
     BGWidget * wBackground;
     QSignalMapper * pageSwitchMapper;
     QByteArray m_lastDemo;
+    QMutex onPageShownMutex;
 
 #ifdef __APPLE__
     InstallController * panel;
 #endif
 
-    void OnPageShown(quint8 id, quint8 lastid=0);
+    void OnPageShown(quint8 id, quint8 lastid=0); // thread-safe
 };
 
 #endif