fixed counting problem. On creation of the config file counting started with 2, creating Desktop 2 Desktop 3 etc.

svn path=/trunk/kdebase/kwin/; revision=58433
This commit is contained in:
Thomas Zander 2000-07-23 17:18:29 +00:00
parent ae07d17aef
commit 4d0ac7b5c0

View file

@ -2699,7 +2699,7 @@ void Workspace::loadDesktopSettings()
rootInfo->setNumberOfDesktops( number_of_desktops );
for(int i = 1; i <= n; i++) {
QString s = c.readEntry(QString("Name_%1").arg(i),
i18n("Desktop %1").arg(i+1));
i18n("Desktop %1").arg(i));
rootInfo->setDesktopName( i, s.utf8().data() );
}
}