Use Jaroslaw's patch (more efficient)
svn path=/trunk/KDE/kdebase/workspace/; revision=735826
This commit is contained in:
parent
9b7ef8e18a
commit
f7ad2de5ea
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue