Fix a crash when trying to open the DiagnosticDialog

Authored by heikobecker on Mar 26 2020, 7:41 PM.

Description

Fix a crash when trying to open the DiagnosticDialog

The possibility to discover the preferred phonon backend is gone
since its qt5 port, causing
'KServiceTypeTrader::self()->preferredService( "PhononBackend" )' to
return a null pointer, which causes a crash later on.
Instead I borrowed some code from the old phonon kcm from
plasma-desktop and slightly modified it.

BUG: 396907

Details

Committed
heikobeckerMar 26 2020, 8:21 PM
Parents
R181:33c88dfa81d3: Fix duplicate include guard
Branches
Unknown
Tags
Unknown