don't crash anymore;
all message received, but is not correctly displayed
diff --git a/demo/chatdialog.h b/demo/chatdialog.h
index ea95873..df3de48 100644
--- a/demo/chatdialog.h
+++ b/demo/chatdialog.h
@@ -19,11 +19,13 @@
 public:
 	ChatDialog(QWidget *parent = 0);
   ~ChatDialog();
-  void appendMessage(const SyncDemo::ChatMessage &msg);
   void processTreeUpdate(const std::vector<Sync::MissingDataInfo> &, Sync::SyncAppSocket *);
   void processData(std::string, const char *buf, size_t len);
   void processRemove(const std::string);
 
+public slots:
+  void appendMessage(const SyncDemo::ChatMessage msg);
+
 private:
   void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
   bool readSettings();
@@ -39,6 +41,9 @@
   void buttonPressed();
   void settingUpdated(QString, QString, QString);
 
+signals:
+  void msgReceived(const SyncDemo::ChatMessage msg);
+
 private:
   User m_user; 
   Sync::SyncAppSocket *m_sock;