Use Jaroslaw's patch (more efficient)

svn path=/trunk/KDE/kdebase/workspace/; revision=735826
This commit is contained in:
Rivo Laks 2007-11-12 17:36:46 +00:00
parent 9b7ef8e18a
commit f7ad2de5ea

View file

@ -138,11 +138,11 @@ KDesktopConfig::KDesktopConfig(QWidget *parent, const QVariantList &)
KSharedConfig::Ptr config = KSharedConfig::openConfig( "kwinrc" );
QString groupname;
QByteArray groupname;
if (kwin_screen_number == 0)
groupname = "Desktops";
else
groupname = "Desktops-screen-" + QString::number ( kwin_screen_number );
groupname = "Desktops-screen-" + QByteArray::number ( kwin_screen_number );
if (config->isGroupImmutable(groupname))
{
@ -151,7 +151,7 @@ KDesktopConfig::KDesktopConfig(QWidget *parent, const QVariantList &)
}
else
{
KConfigGroup cfgGroup(config.data(), groupname);
KConfigGroup cfgGroup(config.data(), groupname.constData());
if (cfgGroup.isEntryImmutable("Number"))
{
number_group->setEnabled(false);