fix(thread): Process stuck because of thread.
Description: 修复线程无法终止导致的卡死问题 Log: 重新添加参数
This commit is contained in:
parent
b225dfa49e
commit
933f32ee67
|
@ -218,11 +218,13 @@ void MainWindow::initUi()
|
||||||
*/
|
*/
|
||||||
void MainWindow::bootOptionsFilter(QString opt)
|
void MainWindow::bootOptionsFilter(QString opt)
|
||||||
{
|
{
|
||||||
clearSearchResult();
|
if (opt == "-s" || opt == "--show") {
|
||||||
this->show();
|
clearSearchResult();
|
||||||
this->raise();
|
this->show();
|
||||||
this->activateWindow();
|
this->raise();
|
||||||
// m_search_result_thread->start();
|
this->activateWindow();
|
||||||
|
// m_search_result_thread->start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -43,7 +43,7 @@ void SearchResult::run()
|
||||||
m_mainwindow->m_searcher->m_mutex2.unlock();
|
m_mainwindow->m_searcher->m_mutex2.unlock();
|
||||||
}
|
}
|
||||||
m_mainwindow->m_searcher->m_mutex3.lock();
|
m_mainwindow->m_searcher->m_mutex3.lock();
|
||||||
if (!m_mainwindow->m_search_result_content->isEmpty())
|
// if (!m_mainwindow->m_search_result_content->isEmpty())
|
||||||
// qDebug() << m_mainwindow->m_search_result_content->head();
|
// qDebug() << m_mainwindow->m_search_result_content->head();
|
||||||
if (!m_mainwindow->m_search_result_content->isEmpty()) {
|
if (!m_mainwindow->m_search_result_content->isEmpty()) {
|
||||||
Q_EMIT this->searchResultContent(m_mainwindow->m_search_result_content->dequeue());
|
Q_EMIT this->searchResultContent(m_mainwindow->m_search_result_content->dequeue());
|
||||||
|
|
Loading…
Reference in New Issue