unfocus_download should always redraw the download list

This commit is contained in:
Shivaram Lingamneni
2016-12-30 09:19:34 -08:00
parent 10ce6864b8
commit 2097c9ca3e
+3 -3
View File
@@ -127,12 +127,12 @@ DownloadList::set_current_view(const std::string& name) {
// This should also do focus_next() or something.
void
DownloadList::unfocus_download(core::Download* d) {
if (current_view()->focus() >= current_view()->end_visible() || *current_view()->focus() != d)
return;
if (m_state == DISPLAY_DOWNLOAD)
activate_display(DISPLAY_DOWNLOAD_LIST);
if (current_view()->focus() >= current_view()->end_visible() || *current_view()->focus() != d)
return;
current_view()->next_focus();
}