Browse Source

Fix potential crash. Closes #5873.

adaptive-webui-19844
Chocobo1 8 years ago
parent
commit
aba625d544
  1. 3
      src/gui/transferlistfilterswidget.cpp

3
src/gui/transferlistfilterswidget.cpp

@ -544,7 +544,8 @@ void TrackerFiltersList::removeItem(const QString &tracker, const QString &hash) @@ -544,7 +544,8 @@ void TrackerFiltersList::removeItem(const QString &tracker, const QString &hash)
updateGeometry();
return;
}
trackerItem->setText(tr("%1 (%2)", "openbittorrent.com (10)").arg(host).arg(tmp.size()));
if (trackerItem != nullptr)
trackerItem->setText(tr("%1 (%2)", "openbittorrent.com (10)").arg(host).arg(tmp.size()));
}
else {
row = 1;

Loading…
Cancel
Save