Merge branch 'new-frontend' into 'new-frontend'

Fix double select;

See merge request kylin-desktop/ukui-search!144
This commit is contained in:
PengfeiZhang 2021-09-23 02:34:36 +00:00
commit 9a2969d19d
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);
}
}