[Touchpad KCM] Prevent save dialog if no touchpad was found
ClosedPublic

Authored by romangg on Nov 10 2016, 2:18 AM.

Details

Summary

If there is no touchpad found, the KCM will always ask if the settings are supposed to be saved because the widget gets changed although no options have and can be changed. This little patch prevents this.

Test Plan

With and without touchpad.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
romangg updated this revision to Diff 8058.Nov 10 2016, 2:18 AM
romangg retitled this revision from to [Touchpad KCM] Prevent save dialog if no touchpad was found.
romangg updated this object.
romangg edited the test plan for this revision. (Show Details)
romangg added a reviewer: Plasma.
romangg set the repository for this revision to R119 Plasma Desktop.
Restricted Application added a project: Plasma. · View Herald TranscriptNov 10 2016, 2:18 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
graesslin added inline comments.
kcms/touchpad/src/touchpadbackend.h
42

naming suggestion: bool hasTouchpad() const?

romangg updated this revision to Diff 8064.Nov 10 2016, 12:14 PM
romangg marked an inline comment as done.

Adjusted name.

graesslin accepted this revision.Nov 10 2016, 1:11 PM
graesslin added a reviewer: graesslin.
This revision is now accepted and ready to land.Nov 10 2016, 1:11 PM
This revision was automatically updated to reflect the committed changes.