mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Fix some warnings
This commit is contained in:
parent
e2b46f01bb
commit
94613c2fa2
29 changed files with 48 additions and 50 deletions
|
@ -441,7 +441,7 @@ void PeerListWidget::updatePeer(const QString &ip, BitTorrent::TorrentHandle *co
|
|||
|
||||
void PeerListWidget::handleResolved(const QString &ip, const QString &hostname)
|
||||
{
|
||||
QStandardItem *item = m_peerItems.value(ip, 0);
|
||||
QStandardItem *item = m_peerItems.value(ip, nullptr);
|
||||
if (item) {
|
||||
qDebug("Resolved %s -> %s", qUtf8Printable(ip), qUtf8Printable(hostname));
|
||||
item->setData(hostname, Qt::DisplayRole);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue