Fix a crash in PowermanagementEngine::populateApplicationData when the given name is empty

Review Request #123555 - Created April 29, 2015 and submitted

Information
Emmanuel Pescosta
plasma-workspace
master
Reviewers
plasma
broulik

Fix a crash in PowermanagementEngine::populateApplicationData when the given name is empty.

Use QString::section instead of QString::split + QList::last (which requires a non empty list) to prevent the crash.

The crash is sometimes reproducible with Spotify. (plasmashell crashes in an endless loop in this case)

IMO: Maybe the PowermanagementEngine should only add inhibitions from applications which have a non empty name?!


  
Kai Uwe Broulik
Lukáš Tinkl
Emmanuel Pescosta
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 08cbba07eb8927ce3a0f864eda8dfe1f8f1a6e44 by Emmanuel Pescosta to branch Plasma/5.3.
Loading...