Browse Source

- Added ASSERT

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
56dc8cad71
  1. 2
      src/transferlistfilterswidget.h

2
src/transferlistfilterswidget.h

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

Loading…
Cancel
Save