mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-23 14:45:22 -07:00
Simplify code
This commit is contained in:
parent
1da29a450c
commit
26cb71458d
1 changed files with 1 additions and 4 deletions
|
@ -105,10 +105,7 @@ void QAlertDispatcher::dispatch(QSharedPointer<Tag> tag,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool was_empty = that->alerts.empty();
|
bool was_empty = that->alerts.empty();
|
||||||
|
that->alerts.push_back(alert_ptr.release());
|
||||||
that->alerts.push_back(alert_ptr.get());
|
|
||||||
alert_ptr.release();
|
|
||||||
|
|
||||||
if (was_empty)
|
if (was_empty)
|
||||||
that->alerts_condvar.wakeAll();
|
that->alerts_condvar.wakeAll();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue