From 2097c9ca3e35fb5611c615f9f9995dbba65ff2c5 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 30 Dec 2016 09:19:34 -0800 Subject: [PATCH] unfocus_download should always redraw the download list --- src/ui/download_list.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/download_list.cc b/src/ui/download_list.cc index 7a070f62..055fbbaf 100644 --- a/src/ui/download_list.cc +++ b/src/ui/download_list.cc @@ -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(); }