Fix double select;

This commit is contained in:
jixiaoxu 2021-09-22 10:29:10 +08:00
parent a1199bd322
commit 9be3392dbe
3 changed files with 6 additions and 3 deletions

View File

@ -68,7 +68,8 @@ void BestListView::clearSelectedRow()
{
if (!m_is_selected) {
this->blockSignals(true);
this->clearSelection();
//this->clearSelection();
this->setCurrentIndex(QModelIndex());
this->blockSignals(false);
}
}

View File

@ -198,7 +198,8 @@ void ResultView::clearSelectedRow()
{
if (!m_is_selected) {
this->blockSignals(true);
this->clearSelection();
//this->clearSelection();
this->setCurrentIndex(QModelIndex());
this->blockSignals(false);
} else {
m_is_selected = false;

View File

@ -58,7 +58,8 @@ void WebSearchView::clearSelectedRow()
{
if (!m_is_selected) {
this->blockSignals(true);
this->clearSelection();
//this->clearSelection();
this->setCurrentIndex(QModelIndex());
this->blockSignals(false);
}
}