1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-03 10:25:02 +00:00

Guard for null pointer

This commit is contained in:
Chocobo1 2021-09-11 11:50:29 +08:00
parent 307f5e6e56
commit 0783968121
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -551,6 +551,9 @@ void PropertiesWidget::loadDynamicData()
void PropertiesWidget::loadUrlSeeds() void PropertiesWidget::loadUrlSeeds()
{ {
if (!m_torrent)
return;
m_ui->listWebSeeds->clear(); m_ui->listWebSeeds->clear();
qDebug("Loading URL seeds"); qDebug("Loading URL seeds");
const QVector<QUrl> hcSeeds = m_torrent->urlSeeds(); const QVector<QUrl> hcSeeds = m_torrent->urlSeeds();