Skip to content

Commit

Permalink
Cleaned up download list bug fix..
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshasa committed Jun 5, 2018
1 parent 321147c commit fd372b5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/ui/download_list.cc
Expand Up @@ -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<Download*>(m_uiArray[DISPLAY_DOWNLOAD])->download()) {
activate_display(DISPLAY_DOWNLOAD_LIST);
}
}
if (m_state == DISPLAY_DOWNLOAD && d == static_cast<Download*>(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
Expand Down

0 comments on commit fd372b5

Please sign in to comment.