First set the new model then reset. Stupid me :-(
svn path=/trunk/KDE/kdebase/workspace/; revision=1042343
This commit is contained in:
parent
e001fdff33
commit
8ebbebbb55
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue