From 8ebbebbb550f6d4d6d95eb2761c3ab0e70d6a3eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 29 Oct 2009 17:02:45 +0000 Subject: [PATCH] First set the new model then reset. Stupid me :-( svn path=/trunk/KDE/kdebase/workspace/; revision=1042343 --- tabbox/clientmodel.cpp | 2 +- tabbox/desktopmodel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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