Prevent Quassel from crashing upon core dis- and reconnect and make the NickListWidgets
[quassel.git] / src / qtui / bufferwidget.h
index 79786db..b988484 100644 (file)
@@ -1,11 +1,11 @@
 /***************************************************************************
- *   Copyright (C) 2005-07 by The Quassel Team                             *
+ *   Copyright (C) 2005-07 by the Quassel IRC Team                         *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
+ *   (at your option) version 3.                                           *
  *                                                                         *
  *   This program is distributed in the hope that it will be useful,       *
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
@@ -24,7 +24,7 @@
 #include "ui_bufferwidget.h"
 
 #include "chatview.h"
-#include "global.h"
+#include "types.h"
 
 class Buffer;
 class ChatView;
@@ -55,12 +55,13 @@ public slots:
 private slots:
   void enterPressed();
   void setActive(bool act = true);
+  void bufferDestroyed(QObject *);
 
 
 private:
   Ui::BufferWidget ui;
   //QHash<BufferId, ChatView*> _chatViews;
-  QHash<BufferId, ChatWidget *> _chatWidgets;
+  QHash<Buffer *, ChatWidget *> _chatWidgets;
   bool active;
 
   QString _networkName;