From d4610e5520d6066801d87a118dbaac41932f9368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 24 Aug 2004 08:35:47 +0000 Subject: [PATCH] Preselect option for using a specific window instead of whole app. svn path=/trunk/kdebase/kwin/; revision=340348 --- kcmkwin/kwinrules/detectwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kcmkwin/kwinrules/detectwidget.cpp b/kcmkwin/kwinrules/detectwidget.cpp index 4acc84faca..a4587f8317 100644 --- a/kcmkwin/kwinrules/detectwidget.cpp +++ b/kcmkwin/kwinrules/detectwidget.cpp @@ -97,6 +97,10 @@ void DetectDialog::executeDialog() widget->class_label->setText( wmclass_class + " (" + wmclass_name + ' ' + wmclass_class + ")" ); widget->role_label->setText( role ); widget->use_role->setEnabled( !role.isEmpty()); + if( widget->use_role->isEnabled()) + widget->use_role->setChecked( true ); + else + widget->use_whole_class->setChecked( true ); if( type == NET::Unknown ) widget->type_label->setText( i18n( "Unknown - will be treated as Normal Window" )); else