cleaning up a bit (views menu and mainwin.cpp)
[quassel.git] / src / qtui / bufferwidget.cpp
index 4158311..bc10ca5 100644 (file)
@@ -19,8 +19,6 @@
  ***************************************************************************/
 
 #include "bufferwidget.h"
-#include "chatline.h"
-#include "chatline-old.h"
 #include "chatview.h"
 #include "chatwidget.h"
 #include "settings.h"
@@ -38,11 +36,11 @@ BufferWidget::~BufferWidget() {
 
 AbstractChatView *BufferWidget::createChatView(BufferId id) {
   QWidget *chatView;
-  if(Global::SPUTDEV) {
-    chatView = new ChatView(Client::buffer(id), this);
-  } else {
-    chatView = new ChatWidget(id, this);
-  }
+#ifdef SPUTDEV
+  chatView = new ChatView(Client::buffer(id), this);
+#else
+  chatView = new ChatWidget(id, this);
+#endif
   _chatViews[id] = chatView;
   ui.stackedWidget->addWidget(chatView);
   chatView->setFocusProxy(this);