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 )
|
void ClientModel::createClientList( int desktop, bool partialReset )
|
||||||
{
|
{
|
||||||
reset();
|
|
||||||
TabBoxClient* start = tabBox->activeClient();
|
TabBoxClient* start = tabBox->activeClient();
|
||||||
// TODO: new clients are not added at correct position
|
// TODO: new clients are not added at correct position
|
||||||
if( partialReset && !m_clientList.isEmpty() )
|
if( partialReset && !m_clientList.isEmpty() )
|
||||||
|
@ -225,6 +224,7 @@ void ClientModel::createClientList( int desktop, bool partialReset )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Tabbox
|
} // namespace Tabbox
|
||||||
|
|
|
@ -131,7 +131,6 @@ QModelIndex DesktopModel::desktopIndex( int desktop ) const
|
||||||
|
|
||||||
void DesktopModel::createDesktopList()
|
void DesktopModel::createDesktopList()
|
||||||
{
|
{
|
||||||
reset();
|
|
||||||
m_desktopList.clear();
|
m_desktopList.clear();
|
||||||
qDeleteAll( m_clientModels );
|
qDeleteAll( m_clientModels );
|
||||||
m_clientModels.clear();
|
m_clientModels.clear();
|
||||||
|
@ -163,6 +162,7 @@ void DesktopModel::createDesktopList()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Tabbox
|
} // namespace Tabbox
|
||||||
|
|
Loading…
Reference in a new issue