Don't even offer the possibility to match using window role if the window

doesn't have it set.

svn path=/trunk/kdebase/kwin/; revision=334156
This commit is contained in:
Luboš Luňák 2004-07-30 13:38:02 +00:00
parent 3966017ccd
commit 2e5c41ad63

View file

@ -98,6 +98,7 @@ void DetectDialog::executeDialog()
}; };
widget->class_label->setText( wmclass_class + " (" + wmclass_name + ' ' + wmclass_class + ")" ); widget->class_label->setText( wmclass_class + " (" + wmclass_name + ' ' + wmclass_class + ")" );
widget->role_label->setText( role ); widget->role_label->setText( role );
widget->use_role->setEnabled( !role.isEmpty());
if( type == NET::Unknown ) if( type == NET::Unknown )
widget->type_label->setText( i18n( "Unknown - will be treated as Normal Window" )); widget->type_label->setText( i18n( "Unknown - will be treated as Normal Window" ));
else else