- Topics are now editable even when they were empty
[quassel.git] / src / qtui / mainwin.cpp
index 5c3e73f..4c89e8e 100644 (file)
@@ -114,7 +114,7 @@ void MainWin::init() {
   // attach the BufferWidget to the BufferModel and the default selection
   ui.bufferWidget->setModel(Client::bufferModel());
   ui.bufferWidget->setSelectionModel(Client::bufferModel()->standardSelectionModel());
   // attach the BufferWidget to the BufferModel and the default selection
   ui.bufferWidget->setModel(Client::bufferModel());
   ui.bufferWidget->setSelectionModel(Client::bufferModel()->standardSelectionModel());
-
+  
   if(Global::SPUTDEV) {
     //showSettingsDlg();
     //showAboutDlg();
   if(Global::SPUTDEV) {
     //showSettingsDlg();
     //showAboutDlg();
@@ -206,8 +206,6 @@ void MainWin::setupNickWidget() {
   // attach the NickListWidget to the BufferModel and the default selection
   nickListWidget->setModel(Client::bufferModel());
   nickListWidget->setSelectionModel(Client::bufferModel()->standardSelectionModel());
   // attach the NickListWidget to the BufferModel and the default selection
   nickListWidget->setModel(Client::bufferModel());
   nickListWidget->setSelectionModel(Client::bufferModel()->standardSelectionModel());
-
-  Client::bufferModel()->mapProperty(0, NetworkModel::BufferIdRole, nickListWidget, "currentBuffer");
 }
 
 void MainWin::setupChatMonitor() {
 }
 
 void MainWin::setupChatMonitor() {
@@ -262,7 +260,8 @@ void MainWin::setupTopicWidget() {
 
   dock->setWidget(topicwidget);
 
 
   dock->setWidget(topicwidget);
 
-  Client::bufferModel()->mapProperty(1, Qt::DisplayRole, topicwidget, "topic");
+  topicwidget->setModel(Client::bufferModel());
+  topicwidget->setSelectionModel(Client::bufferModel()->standardSelectionModel());
 
   addDockWidget(Qt::TopDockWidgetArea, dock);
 
 
   addDockWidget(Qt::TopDockWidgetArea, dock);