mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Simplify code
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user