X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=56f7d7e9f564f71e71167d3ea37aa19ea3c7227e;hp=7e7d61a71e7a8ed7c773427bd9b0447cda52b6f1;hb=2a04cb443a50e37165fc2d5447cc705a813efd3e;hpb=e5ef65b239e9a128a5cf86e6eef9bce1fd098448 diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 7e7d61a7..56f7d7e9 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -128,10 +128,8 @@ void MainWin::init() { // attach the BufferWidget to the PropertyMapper - Client::bufferModel()->mapProperty(0, NetworkModel::BufferIdRole, ui.bufferWidget, "currentBuffer"); - Client::bufferModel()->mapProperty(0, NetworkModel::NetworkIdRole, ui.bufferWidget, "currentNetwork"); - connect(Client::networkModel(), SIGNAL(bufferAboutToBeRemoved(BufferId)), - ui.bufferWidget, SLOT(removeBuffer(BufferId))); + ui.bufferWidget->setModel(Client::bufferModel()); + ui.bufferWidget->setSelectionModel(Client::bufferModel()->standardSelectionModel()); // attach the NickList to the PropertyMapper Client::bufferModel()->mapProperty(0, NetworkModel::BufferIdRole, nickListWidget, "currentBuffer"); @@ -275,7 +273,6 @@ void MainWin::showDebugConsole() { void MainWin::closeEvent(QCloseEvent *event) { //if (userReallyWantsToQuit()) { - ui.bufferWidget->saveState(); UiSettings s; s.setValue("MainWinSize", size()); s.setValue("MainWinPos", pos());