From b87bf5573b67e67b00670707c0d468694e53a84d Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Fri, 7 Jul 2023 16:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E5=90=8E=E9=9A=90=E8=97=8F=E7=95=8C=E9=9D=A2=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E5=94=A4=E9=86=92=E4=BC=9A=E9=97=AA=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { //有上层弹窗未关闭,不允许隐藏主界面