Fix for RMB popup "send to desktop" when desktop number != 4

svn path=/trunk/kdebase/kwin/; revision=35971
This commit is contained in:
David Faure 1999-12-06 20:54:30 +00:00
parent 83bd1cc680
commit 61123bd562

View file

@ -161,8 +161,8 @@ void Workspace::init()
config->setGroup("Desktops");
if (!config->hasKey("NumberOfDesktops"))
config->writeEntry("NumberOfDesktops", 4);
int number_of_desktops = config->readNumEntry("NumberOfDesktops");
setNumberOfDesktops( number_of_desktops );
int n = config->readNumEntry("NumberOfDesktops");
setNumberOfDesktops( n );
setCurrentDesktop( 1 );
unsigned int i, nwins;