D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-09-12 Thread Kai Uwe Broulik
This revision was automatically updated to reflect the committed changes. Closed by commit R119:dff9d7fe09f2: [Folder View] Create KFilePlacesModel only when needed and listen for changes (authored by broulik). CHANGED PRIOR TO COMMIT https://phabricator.kde.org/D14426?vs=41331&id=41485#toc RE

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-09-10 Thread Kai Uwe Broulik
broulik updated this revision to Diff 41331. broulik added a comment. Indeed I did :) REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D14426?vs=41318&id=41331 REVISION DETAIL https://phabricator.kde.org/D14426 AFFECTED FILES containments/desktop/

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-09-10 Thread Eike Hein
hein added a comment. Did you forget to update the diff? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D14426 To: broulik, #plasma, hein Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-09-10 Thread Kai Uwe Broulik
broulik updated this revision to Diff 41318. broulik edited the summary of this revision. broulik added a comment. - Make `KFilePlacesModel` `static` and ref-counted For simplicify the ref count is increased/decreased in the constructor and not depending on whether the model is actually u

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-07-30 Thread Eike Hein
hein added a comment. Danke :) REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D14426 To: broulik, #plasma, hein Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-07-30 Thread Kai Uwe Broulik
broulik planned changes to this revision. broulik added a comment. Good idea, will do REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D14426 To: broulik, #plasma, hein Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts,

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-07-30 Thread Eike Hein
hein added a comment. Can we make the KFilePlaces model static on top of this? It could be shared by all FVs that need it. Look at how tasksmodel.cpp keeps a refcount of when ActivityInfo is in use and deletes it when it drops to 0 for example ... REPOSITORY R119 Plasma Desktop REVISION D

D14426: [Folder View] Create KFilePlacesModel only when needed and listen for changes

2018-07-27 Thread Kai Uwe Broulik
broulik created this revision. broulik added reviewers: Plasma, hein. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. broulik requested review of this revision. REVISION SUMMARY When no label is displayed, there's no point in creating a `K