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:
Marco Martin 2012-02-29 16:42:22 +01:00
parent dd026bdd9f
commit 7a71ab72ea

View file

@ -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)