make sure the tapped window gets activated
if when the tabbox is open another window that does -not- appear in the tabbox gets focus, tapping on the same thumbnail as the last active window won't produce any effect, the patch makes sure that window gets activated, even if it has the currentIndex REVIEW:104096
This commit is contained in:
parent
dd026bdd9f
commit
7a71ab72ea
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ void DeclarativeView::setCurrentIndex(const QModelIndex &index)
|
||||||
void DeclarativeView::currentIndexChanged(int row)
|
void DeclarativeView::currentIndexChanged(int row)
|
||||||
{
|
{
|
||||||
tabBox->setCurrentIndex(m_model->index(row, 0));
|
tabBox->setCurrentIndex(m_model->index(row, 0));
|
||||||
|
KWindowSystem::forceActiveWindow(m_model->data(m_model->index(row, 0), ClientModel::WIdRole).toLongLong());
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeclarativeView::updateQmlSource(bool force)
|
void DeclarativeView::updateQmlSource(bool force)
|
||||||
|
|
Loading…
Reference in a new issue