- Added ASSERT

This commit is contained in:
Christophe Dumez 2010-01-03 21:09:01 +00:00
parent 7cc07d842c
commit 56dc8cad71

View file

@ -357,8 +357,8 @@ protected slots:
}
void torrentAboutToBeDeleted(QModelIndex index) {
if(!index.isValid()) return;
Q_ASSERT(index.isValid());
if(!index.isValid()) return;
QString label = transferList->model()->index(index.row(), TR_LABEL).data(Qt::DisplayRole).toString().trimmed();
if(!label.isEmpty()) {
// Update label counter