Fix parentless dialogs

svn path=/trunk/KDE/kdebase/workspace/; revision=734552
This commit is contained in:
Craig Drummond 2007-11-09 08:02:24 +00:00
parent 206dc8a378
commit bd2bdc040b

View file

@ -77,7 +77,7 @@ void KCMRulesList::activeChanged()
void KCMRulesList::newClicked() void KCMRulesList::newClicked()
{ {
RulesDialog dlg; RulesDialog dlg(this);
Rules* rule = dlg.edit( NULL, 0, false ); Rules* rule = dlg.edit( NULL, 0, false );
if( rule == NULL ) if( rule == NULL )
return; return;
@ -93,7 +93,7 @@ void KCMRulesList::modifyClicked()
int pos = rules_listbox->currentRow(); int pos = rules_listbox->currentRow();
if ( pos == -1 ) if ( pos == -1 )
return; return;
RulesDialog dlg; RulesDialog dlg(this);
Rules* rule = dlg.edit( rules[ pos ], 0, false ); Rules* rule = dlg.edit( rules[ pos ], 0, false );
if( rule == rules[ pos ] ) if( rule == rules[ pos ] )
return; return;