Improve "stats updated" signal handling in MainWindow class

This commit is contained in:
Chocobo1 2019-09-24 11:29:07 +08:00
parent 50e0b2ab15
commit 58fa5e004f
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 29 additions and 20 deletions

View file

@ -4399,7 +4399,8 @@ void Session::handleStateUpdateAlert(const lt::state_update_alert *p)
updatedTorrents.push_back(torrent);
}
emit torrentsUpdated(updatedTorrents);
if (!updatedTorrents.isEmpty())
emit torrentsUpdated(updatedTorrents);
}
namespace