From fd372b5e48439ad6d5cd1a36af6d5d13b989b61c Mon Sep 17 00:00:00 2001 From: rakshasa Date: Tue, 5 Jun 2018 16:22:01 +0900 Subject: [PATCH] Cleaned up download list bug fix.. --- src/ui/download_list.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ui/download_list.cc b/src/ui/download_list.cc index 08ed13bed..003f9cd01 100644 --- a/src/ui/download_list.cc +++ b/src/ui/download_list.cc @@ -126,15 +126,11 @@ DownloadList::set_current_view(const std::string& name) { void DownloadList::unfocus_download(core::Download* d) { - if (m_state == DISPLAY_DOWNLOAD) { - if (d == static_cast(m_uiArray[DISPLAY_DOWNLOAD])->download()) { - activate_display(DISPLAY_DOWNLOAD_LIST); - } - } + if (m_state == DISPLAY_DOWNLOAD && d == static_cast(m_uiArray[DISPLAY_DOWNLOAD])->download()) + activate_display(DISPLAY_DOWNLOAD_LIST); - if (*current_view()->focus() == d && current_view()->focus() < current_view()->end_visible()) { + if (*current_view()->focus() == d && current_view()->focus() < current_view()->end_visible()) current_view()->next_focus(); - } } void