Prevent Quassel from crashing upon core dis- and reconnect and make the NickListWidgets
[quassel.git] / src / qtui / bufferwidget.h
index d36f19a..b988484 100644 (file)
@@ -55,12 +55,13 @@ public slots:
 private slots:
   void enterPressed();
   void setActive(bool act = true);
 private slots:
   void enterPressed();
   void setActive(bool act = true);
+  void bufferDestroyed(QObject *);
 
 
 private:
   Ui::BufferWidget ui;
   //QHash<BufferId, ChatView*> _chatViews;
 
 
 private:
   Ui::BufferWidget ui;
   //QHash<BufferId, ChatView*> _chatViews;
-  QHash<BufferId, ChatWidget *> _chatWidgets;
+  QHash<Buffer *, ChatWidget *> _chatWidgets;
   bool active;
 
   QString _networkName;
   bool active;
 
   QString _networkName;