Fix warnings
ClosedPublic

Authored by apol on Jul 12 2016, 1:41 PM.

Details

Reviewers
mart
Group Reviewers
Kirigami
Commits
R169:50b4b7b032a2: Fix warnings
Summary

Make sure we don't ever call null objects

Diff Detail

Repository
R169 Kirigami
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
apol updated this revision to Diff 5096.Jul 12 2016, 1:41 PM
apol retitled this revision from to Fix warnings.
apol updated this object.
apol edited the test plan for this revision. (Show Details)
apol added reviewers: Kirigami, mart.
Restricted Application added a project: Kirigami. · View Herald TranscriptJul 12 2016, 1:41 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart added inline comments.Jul 12 2016, 1:49 PM
src/controls/templates/private/ContextIcon.qml
29

does the context menu icon keeps morphing correctly with this?

src/controls/templates/private/PageRow.qml
326

why adding check over mainFlickable.currentItem ? doesn't guard anything

mart added inline comments.Jul 12 2016, 2:24 PM
src/controls/templates/private/ContextIcon.qml
29

tested, definitely breaks morphing.
the property binding should be set in the drawer itself (a bit difficult as is in a loader) rathen than in the component

apol added a comment.Jul 20 2016, 9:15 AM

why adding check over mainFlickable.currentItem ? doesn't guard anything

We don't want mainFlickable.currentItem.width to fail if mainFlickable.currentItem is null.

apol updated this revision to Diff 5344.Jul 20 2016, 9:20 AM

Address Marco's comment

apol updated this revision to Diff 5345.Jul 20 2016, 9:36 AM

Fix morphing, proper testing

mart accepted this revision.Jul 20 2016, 9:37 AM
mart edited edge metadata.
This revision is now accepted and ready to land.Jul 20 2016, 9:37 AM
This revision was automatically updated to reflect the committed changes.