fix(frontend): There is no web search result when there is no local result.

Description: 修复没有本地搜索结果时不显示网页搜索列表的问题

Log: 修复没有本地搜索结果时不显示网页搜索列表的问题
Bug: http://172.17.66.192/biz/bug-view-40944.html
This commit is contained in:
zhangjiaping 2021-03-03 09:02:39 +08:00
parent da0bce0e48
commit 896fb44dea
1 changed files with 3 additions and 2 deletions

View File

@ -442,7 +442,7 @@ int ContentWidget::currentPage() {
*/
void ContentWidget::resetSearchList()
{
this->hideListView();
// this->hideListView();
if (m_fileListView) {
m_fileListView->hide();
m_fileTitleLabel->hide();
@ -491,7 +491,8 @@ void ContentWidget::resetSearchList()
m_webListView->show();
m_webListView->isHidden = false;
}
m_resultList->setFixedHeight(0);
resetListHeight();
m_detailView->clearLayout();
m_contentDetailList.clear();
m_bestContent.clear();