Show the opacity slider based on whether compositing is really used,
not just configured. svn path=/trunk/KDE/kdebase/workspace/; revision=728430
This commit is contained in:
parent
bda9b9d0da
commit
c0632944a9
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ QMenu* Workspace::clientPopup()
|
|||
action = popup->addMenu( advanced_popup );
|
||||
action->setText( i18n("Ad&vanced") );
|
||||
|
||||
if (options->useCompositing){
|
||||
if (compositing()){
|
||||
trans_popup = new QMenu( popup );
|
||||
trans_popup->setFont(KGlobalSettings::menuFont());
|
||||
connect( trans_popup, SIGNAL( triggered(QAction*) ), this, SLOT( setPopupClientOpacity(QAction*)));
|
||||
|
@ -222,7 +222,7 @@ void Workspace::clientPopupAboutToShow()
|
|||
mNoBorderOpAction->setChecked( active_popup_client->noBorder() );
|
||||
mMinimizeOpAction->setEnabled( active_popup_client->isMinimizable() );
|
||||
mCloseOpAction->setEnabled( active_popup_client->isCloseable() );
|
||||
if (options->useCompositing)
|
||||
if( trans_popup != NULL )
|
||||
{
|
||||
foreach( QAction* action, trans_popup->actions())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue