void winPrefs::onChannelNameChanged() { QListWidgetItem *tmpItem = fChannelList->currentItem(); classChannel cc = pWorld->pChannels[ tmpItem->data(Qt::UserRole).toInt() ]; cc.channelName.append("+"); cc.channelName = fChanName->text(); pWorld->pChannels[ tmpItem->data(Qt::UserRole).toInt() ] = cc; //refreshChannels(); }