Skip copying of tiles when there aren't any tiles
svn path=/trunk/KDE/kdebase/workspace/; revision=1123171
This commit is contained in:
parent
33234b75eb
commit
ef02e261ae
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,10 @@ TilingLayout* TilingLayoutFactory::cycleLayout( TilingLayout *curr, bool next )
|
|||
curr->removeTileNoArrange( t );
|
||||
}
|
||||
|
||||
if( tiles.length() == 0 )
|
||||
return l;
|
||||
|
||||
// so that we don't rearrange after every call
|
||||
Tile *last = tiles.takeLast();
|
||||
foreach( Tile *t, tiles )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue