ui.settingsGroupBox->setEnabled(false);
ui.bufferViewPreview->setEnabled(false);
- setEnabled(Client::isConnected()); // need a core connection!
+ coreConnectionStateChanged(Client::isConnected()); // need a core connection!
connect(Client::instance(), SIGNAL(coreConnectionStateChanged(bool)), this, SLOT(coreConnectionStateChanged(bool)));
connect(ui.bufferViewList->selectionModel(), SIGNAL(selectionChanged(const QItemSelection &, const QItemSelection &)),
this, SLOT(bufferViewSelectionChanged(const QItemSelection &, const QItemSelection &)));
QList<BufferId> bufferIds;
if(config->addNewBuffersAutomatically()) {
- foreach(BufferInfo bufferInfo, Client::allBufferInfos()) {
- bufferIds << bufferInfo.bufferId();
- }
+ bufferIds = Client::networkModel()->allBufferIds();
if(config->sortAlphabetically())
qSort(bufferIds.begin(), bufferIds.end(), bufferIdLessThan);
}
if(_newBufferViews.contains(config)) {
QList<BufferId> bufferIds;
if(config->addNewBuffersAutomatically()) {
- foreach(BufferInfo bufferInfo, Client::allBufferInfos()) {
- bufferIds << bufferInfo.bufferId();
- }
+ bufferIds = Client::networkModel()->allBufferIds();
if(config->sortAlphabetically())
qSort(bufferIds.begin(), bufferIds.end(), bufferIdLessThan);
}