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:
Luboš Luňák 2007-10-23 09:00:22 +00:00
parent bda9b9d0da
commit c0632944a9

View file

@ -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())
{