diff --git a/tabbox/clientmodel.cpp b/tabbox/clientmodel.cpp index 063bc975e5..a9c1f1ee83 100644 --- a/tabbox/clientmodel.cpp +++ b/tabbox/clientmodel.cpp @@ -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 diff --git a/tabbox/desktopmodel.cpp b/tabbox/desktopmodel.cpp index f5d2f29a42..86cc9787c8 100644 --- a/tabbox/desktopmodel.cpp +++ b/tabbox/desktopmodel.cpp @@ -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