leinir created this revision. leinir added reviewers: Plasma, ngraham. leinir added a project: Plasma. Herald added a subscriber: plasma-devel. leinir requested review of this revision.
REVISION SUMMARY When installing a new cursor theme from KNewStuff, the current theme would become deselected due to a full refresh of the theme list. This also introduces a simple convenience helper originally from Discover, which simply runs a function based on a signal being fired, and then deletes itself. This might be useful elsewhere as well, but until the need arises it seems reasonable to leave it here. BUG:406084 TEST PLAN Install a theme using Get Hot New Stuff, see that after the list refreshes, the current theme is reselected. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D20198 AFFECTED FILES kcms/cursortheme/kcmcursortheme.cpp kcms/cursortheme/kcmcursortheme.h kcms/cursortheme/xcursor/thememodel.cpp To: leinir, #plasma, ngraham Cc: plasma-devel, #plasma, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart