mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-09 15:49:20 +00:00
Let the download list own its downloads through a shared pointer.
A multicall could then dispatch commands on an erased download.
This commit is contained in:
@@ -89,7 +89,7 @@ DownloadList::unfocus_download(core::Download* d) {
|
||||
if (m_state == DISPLAY_DOWNLOAD && d == static_cast<Download*>(m_uiArray[DISPLAY_DOWNLOAD])->download())
|
||||
activate_display(DISPLAY_DOWNLOAD_LIST);
|
||||
|
||||
if (current_view()->focus() < current_view()->end_visible() && *current_view()->focus() == d)
|
||||
if (current_view()->focus() < current_view()->end_visible() && current_view()->focus()->get() == d)
|
||||
current_view()->next_focus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user