diff --git a/src/control/search-detail-view.cpp b/src/control/search-detail-view.cpp index f47c7ad..12cf27a 100644 --- a/src/control/search-detail-view.cpp +++ b/src/control/search-detail-view.cpp @@ -65,13 +65,13 @@ QString SearchDetailView::getHtmlText(const QString & text, const QString & keyw if ((keyword.toUpper()).contains(QString(text.at(i)).toUpper())) { if (! boldOpenned) { boldOpenned = true; - htmlString.append(QString("")); + htmlString.append(QString("")); } htmlString.append(QString(text.at(i))); } else { if (boldOpenned) { boldOpenned = false; - htmlString.append(QString("")); + htmlString.append(QString("")); } htmlString.append(QString(text.at(i))); } diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2f93aa2..7fd12e6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -206,7 +206,7 @@ void MainWindow::initUi() &MainWindow::primaryScreenChangedSlot); connect(m_searchLayout, &UkuiSearchBarHLayout::textChanged, this, [ = ](QString text) { if (text == "") { - if (m_search_result_thread->isInterruptionRequested()) { + if (m_search_result_thread->isRunning()) { m_search_result_thread->requestInterruption(); m_search_result_thread->quit(); } @@ -214,7 +214,7 @@ void MainWindow::initUi() } else { m_contentFrame->setCurrentIndex(1); // QTimer::singleShot(50,this,[=](){ - if (! m_search_result_thread->isInterruptionRequested()) { + if (! m_search_result_thread->isRunning()) { m_search_result_thread->start(); } searchContent(text);