forked from openkylin/ukui-search
Merge branch 'new-frontend' into 'new-frontend'
Fix double select; See merge request kylin-desktop/ukui-search!144
This commit is contained in:
commit
9a2969d19d
|
@ -68,7 +68,8 @@ void BestListView::clearSelectedRow()
|
||||||
{
|
{
|
||||||
if (!m_is_selected) {
|
if (!m_is_selected) {
|
||||||
this->blockSignals(true);
|
this->blockSignals(true);
|
||||||
this->clearSelection();
|
//this->clearSelection();
|
||||||
|
this->setCurrentIndex(QModelIndex());
|
||||||
this->blockSignals(false);
|
this->blockSignals(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,7 +198,8 @@ void ResultView::clearSelectedRow()
|
||||||
{
|
{
|
||||||
if (!m_is_selected) {
|
if (!m_is_selected) {
|
||||||
this->blockSignals(true);
|
this->blockSignals(true);
|
||||||
this->clearSelection();
|
//this->clearSelection();
|
||||||
|
this->setCurrentIndex(QModelIndex());
|
||||||
this->blockSignals(false);
|
this->blockSignals(false);
|
||||||
} else {
|
} else {
|
||||||
m_is_selected = false;
|
m_is_selected = false;
|
||||||
|
|
|
@ -58,7 +58,8 @@ void WebSearchView::clearSelectedRow()
|
||||||
{
|
{
|
||||||
if (!m_is_selected) {
|
if (!m_is_selected) {
|
||||||
this->blockSignals(true);
|
this->blockSignals(true);
|
||||||
this->clearSelection();
|
//this->clearSelection();
|
||||||
|
this->setCurrentIndex(QModelIndex());
|
||||||
this->blockSignals(false);
|
this->blockSignals(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue