Skip to content
Commit 5b5b6d90 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 f0be0498
Pipeline #326475 passed with stage
in 13 minutes and 22 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