Don't create multiple in-process backend instances
ClosedPublic

Authored by dvratil on Jan 15 2018, 9:23 PM.

Details

Summary

The 'name' argument is in most cases empty by which the caller indicates that
they want the default backend. As such repeated calls to loadBackendInProcess(QString())
cause to instantiate a new backend every time, because the name check in the
condition is never true.

Diff Detail

Repository
R110 KScreen Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dvratil created this revision.Jan 15 2018, 9:23 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 15 2018, 9:23 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
dvratil requested review of this revision.Jan 15 2018, 9:23 PM
dvratil updated this revision to Diff 25427.Jan 15 2018, 9:29 PM

Fix commit message

davidedmundson accepted this revision.Jan 15 2018, 9:48 PM
This revision is now accepted and ready to land.Jan 15 2018, 9:48 PM
This revision was automatically updated to reflect the committed changes.