Fix parentless dialogs
svn path=/trunk/KDE/kdebase/workspace/; revision=734552
This commit is contained in:
parent
206dc8a378
commit
bd2bdc040b
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ void KCMRulesList::activeChanged()
|
|||
|
||||
void KCMRulesList::newClicked()
|
||||
{
|
||||
RulesDialog dlg;
|
||||
RulesDialog dlg(this);
|
||||
Rules* rule = dlg.edit( NULL, 0, false );
|
||||
if( rule == NULL )
|
||||
return;
|
||||
|
@ -93,7 +93,7 @@ void KCMRulesList::modifyClicked()
|
|||
int pos = rules_listbox->currentRow();
|
||||
if ( pos == -1 )
|
||||
return;
|
||||
RulesDialog dlg;
|
||||
RulesDialog dlg(this);
|
||||
Rules* rule = dlg.edit( rules[ pos ], 0, false );
|
||||
if( rule == rules[ pos ] )
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue