qWarning() << q.lastQuery() << q.lastError().text();
sqlError = q.lastError();
}
+ channels.reserve(q.size());
while (q.next()) {
YTChannel *channel = YTChannel::forId(q.value(0).toString());
connect(channel, SIGNAL(thumbnailLoaded()), SLOT(updateSender()), Qt::UniqueConnection);
connect(channel, SIGNAL(destroyed(QObject *)), SLOT(removeChannel(QObject *)), Qt::UniqueConnection);
channels << channel;
}
+ channels.squeeze();
endResetModel();
}