Improve behavior of deleting torrents in transfer list

Avoids accessing invalid pointers.
Closes #12584.
This commit is contained in:
Chocobo1
2020-04-26 09:42:08 +08:00
parent 4e961845cf
commit 7ce83599b4
2 changed files with 26 additions and 19 deletions

View File

@@ -141,6 +141,7 @@ private:
void confirmRemoveAllTagsForSelection();
QStringList askTagsForSelection(const QString &dialogTitle);
void applyToSelectedTorrents(const std::function<void (BitTorrent::TorrentHandle *const)> &fn);
QVector<BitTorrent::TorrentHandle *> getVisibleTorrents() const;
// supposed to be used with qss only
QColor unknownStateForeground() const;