mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
- Put back the ASSERT (it should no longer be hit)
This commit is contained in:
parent
baaadf07fa
commit
7cc07d842c
1 changed files with 2 additions and 1 deletions
|
@ -332,8 +332,8 @@ protected slots:
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdded(QModelIndex index) {
|
void torrentAdded(QModelIndex index) {
|
||||||
|
Q_ASSERT(index.isValid());
|
||||||
if(!index.isValid()) return;
|
if(!index.isValid()) return;
|
||||||
//Q_ASSERT(index.isValid());
|
|
||||||
QString label = transferList->getSourceModel()->index(index.row(), TR_LABEL).data(Qt::DisplayRole).toString().trimmed();
|
QString label = transferList->getSourceModel()->index(index.row(), TR_LABEL).data(Qt::DisplayRole).toString().trimmed();
|
||||||
qDebug("New torrent was added with label: %s", label.toLocal8Bit().data());
|
qDebug("New torrent was added with label: %s", label.toLocal8Bit().data());
|
||||||
if(!label.isEmpty()) {
|
if(!label.isEmpty()) {
|
||||||
|
@ -357,6 +357,7 @@ protected slots:
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAboutToBeDeleted(QModelIndex index) {
|
void torrentAboutToBeDeleted(QModelIndex index) {
|
||||||
|
if(!index.isValid()) return;
|
||||||
Q_ASSERT(index.isValid());
|
Q_ASSERT(index.isValid());
|
||||||
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()) {
|
||||||
|
|
Loading…
Reference in a new issue