forked from openkylin/ukui-search
Fix the problem that the result widget will display a blank page.
This commit is contained in:
parent
8e41b58969
commit
c2a5051b5d
|
@ -303,7 +303,7 @@ void MainWindow::searchKeywordSlot(const QString &keyword)
|
||||||
// m_stackedWidget->setPage(int(StackedPage::HomePage));
|
// m_stackedWidget->setPage(int(StackedPage::HomePage));
|
||||||
QTimer::singleShot(10, this, [ = ]() {
|
QTimer::singleShot(10, this, [ = ]() {
|
||||||
m_askTimer->stop();
|
m_askTimer->stop();
|
||||||
Q_EMIT m_searchResultPage->stopSearch();
|
// Q_EMIT m_searchResultPage->stopSearch();
|
||||||
m_searchResultPage->hide();
|
m_searchResultPage->hide();
|
||||||
this->resizeHeight(68);
|
this->resizeHeight(68);
|
||||||
});
|
});
|
||||||
|
|
|
@ -67,6 +67,7 @@ ReceiveResultThread::ReceiveResultThread(DataQueue<SearchPluginIface::ResultInfo
|
||||||
void ReceiveResultThread::stop()
|
void ReceiveResultThread::stop()
|
||||||
{
|
{
|
||||||
this->requestInterruption();
|
this->requestInterruption();
|
||||||
|
this->wait();
|
||||||
this->quit();
|
this->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue