diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index b4776a8..7792535 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -303,7 +303,7 @@ void MainWindow::searchKeywordSlot(const QString &keyword) // m_stackedWidget->setPage(int(StackedPage::HomePage)); QTimer::singleShot(10, this, [ = ]() { m_askTimer->stop(); - Q_EMIT m_searchResultPage->stopSearch(); +// Q_EMIT m_searchResultPage->stopSearch(); m_searchResultPage->hide(); this->resizeHeight(68); }); diff --git a/frontend/model/search-result-manager.cpp b/frontend/model/search-result-manager.cpp index 1ac4a63..91179f2 100644 --- a/frontend/model/search-result-manager.cpp +++ b/frontend/model/search-result-manager.cpp @@ -67,6 +67,7 @@ ReceiveResultThread::ReceiveResultThread(DataQueuerequestInterruption(); + this->wait(); this->quit(); }