// 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");
void MainWin::closeEvent(QCloseEvent *event)
{
//if (userReallyWantsToQuit()) {
- ui.bufferWidget->saveState();
UiSettings s;
s.setValue("MainWinSize", size());
s.setValue("MainWinPos", pos());