~ubuntu-branches/ubuntu/precise/kde-workspace/precise-security

« back to all changes in this revision

Viewing changes to kmenuedit/basictab.cpp

Tags: upstream-4.7.2
Import upstream version 4.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
    else // backwards comp.
407
407
        _launchCB->setChecked(df->desktopGroup().readEntry("X-KDE-StartupNotify", true));
408
408
 
409
 
    _onlyShowInKdeCB->setChecked( false );
410
 
    if ( df->desktopGroup().hasKey( "OnlyShowIn") )
411
 
    {
412
 
        if ( df->desktopGroup().readXdgListEntry("OnlyShowIn").contains( "KDE" ) )
413
 
            _onlyShowInKdeCB->setChecked( true );
414
 
 
415
 
    }
 
409
    _onlyShowInKdeCB->setChecked( df->desktopGroup().readXdgListEntry("OnlyShowIn").contains( "KDE" ) );
 
410
    
416
411
    if ( df->desktopGroup().hasKey( "NoDisplay" ) )
417
412
        _hiddenEntryCB->setChecked( df->desktopGroup().readEntry( "NoDisplay", true ) );
418
413
    else
458
453
        dg.writeEntry("X-KDE-Username", _uidEdit->text());
459
454
        dg.writeEntry("StartupNotify", _launchCB->isChecked());
460
455
        dg.writeEntry( "NoDisplay", _hiddenEntryCB->isChecked() );
461
 
        if ( _onlyShowInKdeCB->isChecked() )
462
 
            dg.writeXdgListEntry( "OnlyShowIn", QStringList()<<"KDE" );
 
456
 
 
457
        QStringList onlyShowIn = df->desktopGroup().readXdgListEntry("OnlyShowIn");
 
458
        if ( _onlyShowInKdeCB->isChecked() && !onlyShowIn.contains("KDE"))
 
459
            onlyShowIn << "KDE";
 
460
        else if ( !_onlyShowInKdeCB->isChecked() && onlyShowIn.contains("KDE"))
 
461
            onlyShowIn.removeAll("KDE");
 
462
        dg.writeXdgListEntry("OnlyShowIn", onlyShowIn);
463
463
    }
464
464
    else
465
465
    {