mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 22:14:32 +00:00
Merge pull request #5959 from dzmat/DRY_fix_minor
Little DRY violation fixed
This commit is contained in:
commit
a178268b31
@ -1870,9 +1870,7 @@ void Session::saveResumeData()
|
|||||||
switch (a->type()) {
|
switch (a->type()) {
|
||||||
case libt::save_resume_data_failed_alert::alert_type:
|
case libt::save_resume_data_failed_alert::alert_type:
|
||||||
case libt::save_resume_data_alert::alert_type:
|
case libt::save_resume_data_alert::alert_type:
|
||||||
TorrentHandle *torrent = m_torrents.take(static_cast<libt::torrent_alert *>(a)->handle.info_hash());
|
dispatchTorrentAlert(a);
|
||||||
if (torrent)
|
|
||||||
torrent->handleAlert(a);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#if LIBTORRENT_VERSION_NUM < 10100
|
#if LIBTORRENT_VERSION_NUM < 10100
|
||||||
|
Loading…
x
Reference in New Issue
Block a user