D23566: Move code to send signals and set priority of processes to a dedicated object

David Edmundson noreply at phabricator.kde.org
Thu Aug 29 15:39:08 BST 2019


davidedmundson added a comment.


  ++
  
  Looks nice and simplifies this old mega class

INLINE COMMENTS

> process_controller.h:89
> +     */
> +    void setWidget(QWidget *widget);
> +

Eww, it would be better if we could make this a qwindow, but I see you're limited by current KAuth

> ksysguardprocesslist.cpp:1316
> +    } else if (result == KSysGuard::ProcessController::Result::Error) {
>          KMessageBox::sorry(this, i18n("You do not have the permission to kill the process and there "
> +                                      "was a problem trying to run as root."));

If we're invoking this from QML any call that spawns an event loop has the potential to crash.

box = new KMessageBox()
box->setAttribute(DeleteOnClose);
box->show();

would probably help

REPOSITORY
  R111 KSysguard Library

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

To: ahiemstra, #plasma
Cc: davidedmundson, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190829/735ea1c2/attachment.html>


More information about the Plasma-devel mailing list