Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Plasma Desktop Plasma Desktop
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 47
    • Merge requests 47
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Plasma
  • Plasma DesktopPlasma Desktop
  • Merge requests
  • !1

[kcms/nightcolour] Reset needsSave after loading initial QML properties

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged David Edmundson requested to merge work/davidedmundson/nightshiftload into Plasma/5.19 May 18, 2020
  • Overview 1
  • Commits 1
  • Changes 1

Sequence of events is:

  1. KCModule::showEvent()

  2. this queues up a load and queues up a KCModule::changed(false)

  3. during load ConfigModule::setNeedsSave(true) is called we set d->_needsSave to true

  4. we emit ConfigModule::changed(true) which we proxy through to KCModule::changed(true)

  5. we then process the queued KCModule::setChanged(false) from the earlier KCModule::showEvent

  6. so we disable the button

  7. any subsequent changes in the KCM will call ConfigModule::setNeedsSave(true) but this now matches d->_needsSave so it no-ops. Even though KCModule is out of sync.

Systemsettings only knows what KCModule signals, not ConfigModule.

This patch resets ConfigModule::d->_needsSave after step 3

See also https://phabricator.kde.org/D27384#611241

BUG: 411584

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: work/davidedmundson/nightshiftload