elvisangelaccio added inline comments.

INLINE COMMENTS

> kbuildsycocaprogressdialog.cpp:71-73
> +    QDialogButtonBox dialogButtonBox;
> +    dialogButtonBox.setStandardButtons(QDialogButtonBox::Cancel);
> +    setCancelButton(dialogButtonBox.button(QDialogButtonBox::Cancel));

I'm surprised this works. `setCancelButton()` take ownership of the button, but 
the button's parent is created on the stack.

I'd just create it on the heap to be sure. Better safe then sorry.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D17281

To: GB_2, ngraham, #frameworks, cfeck
Cc: elvisangelaccio, ngraham, kde-frameworks-devel, alexde, IohannesPetros, 
trickyricky26, michaelh, crozbo, ndavis, firef, bruns, skadinna, 
aaronhoneycutt, mbohlender

Reply via email to