diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index b749b2e..46e1e1c 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -368,10 +368,11 @@ bool MainWindow::tryHideMainwindow() if (!m_isAskDialogVisible && QApplication::activeModalWidget() == nullptr) { qDebug()<<"Mainwindow will be hidden"; m_currentSearchAsked = false; - this->hide(); m_askTimer->stop(); m_researchTimer->stop(); Q_EMIT m_searchResultPage->stopSearch(); + this->clearSearchResult(); + this->hide(); return true; } else { //有上层弹窗未关闭,不允许隐藏主界面