Cleaned up download list bug fix..

This commit is contained in:
rakshasa
2018-06-05 16:22:01 +09:00
parent 321147cdb8
commit fd372b5e48
+2 -6
View File
@@ -126,15 +126,11 @@ DownloadList::set_current_view(const std::string& name) {
void void
DownloadList::unfocus_download(core::Download* d) { DownloadList::unfocus_download(core::Download* d) {
if (m_state == DISPLAY_DOWNLOAD) { if (m_state == DISPLAY_DOWNLOAD && d == static_cast<Download*>(m_uiArray[DISPLAY_DOWNLOAD])->download())
if (d == static_cast<Download*>(m_uiArray[DISPLAY_DOWNLOAD])->download()) {
activate_display(DISPLAY_DOWNLOAD_LIST); 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(); current_view()->next_focus();
}
} }
void void