Skip to content
Commit b7b657ef authored by Jakob Petsovits's avatar Jakob Petsovits
Browse files

daemon: Stop using loadAction() for retrieving unchanged actions

Several places in the code call ActionPool::loadAction() with an
invalid KConfigGroup argument, this skips the entire loading part
of the function and simply returns the existing action as is.

(ActionPool::init() has already instantiated, but not "loaded",
any applicable PowerDevil::Action objects.)

We can have a separate function signature for this separate task.
Not having to deal with this "variant" of the function will make it
easier to change the function signature of loadAction() in a later
port to KConfigXT.

Following this commit, the only remaining call site for loadAction()
is in PowerDevil::Core::loadProfile(), which indeed passes the
correct KConfigGroup to load from.
parent d8921dbd
Pipeline #471150 passed with stage
in 2 minutes and 7 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment