Skip to content
Commit 4931c5bd authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

notificationmanager: Don't store KFilePlacesModel in a weak pointer

KFilePlacesModel is used to look up "pretty names" for jobs. It is quite
expensive to construct. The current code tries to ensure there is a
single instance around when there are jobs active, however because it
uses a weak pointer for storage, when there is no job around, the model
gets destroyed and we recreate it when there's a job again. To avoid
this, just store it in a "strong" pointer so we create it once and it
stays around.
parent b8a885b5
Pipeline #327420 passed with stage
in 17 minutes and 2 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