Don't activate cube if there are less than two desktops.

BUG: 177714

svn path=/trunk/KDE/kdebase/workspace/; revision=896698
This commit is contained in:
Martin Gräßlin 2008-12-14 09:24:45 +00:00
parent 94fd94aac1
commit 6ff3a4134b

View file

@ -1325,7 +1325,8 @@ bool CubeEffect::borderActivated( ElectricBorder border )
void CubeEffect::toggle()
{
if( effects->activeFullScreenEffect() && effects->activeFullScreenEffect() != this )
if( effects->activeFullScreenEffect() && effects->activeFullScreenEffect() != this ||
effects->numberOfDesktops() < 2 )
return;
if( !activated )
{