Use double-click to modify rules
svn path=/trunk/kdebase/kwin/; revision=342725
This commit is contained in:
parent
43f9553004
commit
bd57539a03
1 changed files with 4 additions and 2 deletions
|
@ -47,7 +47,8 @@ KCMRulesList::KCMRulesList( QWidget* parent, const char* name )
|
|||
SLOT( moveupClicked()));
|
||||
connect( movedown_button, SIGNAL( clicked()),
|
||||
SLOT( movedownClicked()));
|
||||
|
||||
connect( rules_listbox, SIGNAL( doubleClicked ( QListBoxItem * ) ),
|
||||
SLOT( modifyClicked()));
|
||||
load();
|
||||
}
|
||||
|
||||
|
@ -86,7 +87,8 @@ void KCMRulesList::newClicked()
|
|||
void KCMRulesList::modifyClicked()
|
||||
{
|
||||
int pos = rules_listbox->currentItem();
|
||||
assert( pos != -1 );
|
||||
if ( pos == -1 )
|
||||
return;
|
||||
RulesDialog dlg;
|
||||
Rules* rule = dlg.edit( rules[ pos ] );
|
||||
if( rule == rules[ pos ] )
|
||||
|
|
Loading…
Reference in a new issue