First set the new model then reset. Stupid me :-(

svn path=/trunk/KDE/kdebase/workspace/; revision=1042343
This commit is contained in:
Martin Gräßlin 2009-10-29 17:02:45 +00:00
parent e001fdff33
commit 8ebbebbb55
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,6 @@ void ClientModel::createClientList( bool partialReset )
void ClientModel::createClientList( int desktop, bool partialReset )
{
reset();
TabBoxClient* start = tabBox->activeClient();
// TODO: new clients are not added at correct position
if( partialReset && !m_clientList.isEmpty() )
@ -225,6 +224,7 @@ void ClientModel::createClientList( int desktop, bool partialReset )
break;
}
}
reset();
}
} // namespace Tabbox

View file

@ -131,7 +131,6 @@ QModelIndex DesktopModel::desktopIndex( int desktop ) const
void DesktopModel::createDesktopList()
{
reset();
m_desktopList.clear();
qDeleteAll( m_clientModels );
m_clientModels.clear();
@ -163,6 +162,7 @@ void DesktopModel::createDesktopList()
break;
}
}
reset();
}
} // namespace Tabbox