MobileTextActionsToolBar check if controlRoot is undefined before using it
ClosedPublic

Authored by meven on Wed, Nov 6, 9:51 AM.

Details

Summary

Prevents warning such as

qml/org/kde/plasma/components.3/mobiletextselection/MobileTextActionsToolBar.qml:62: TypeError: Cannot read property 'selectedText' of null
qml/org/kde/plasma/components.3/mobiletextselection/MobileTextActionsToolBar.qml:70: TypeError: Cannot read property 'selectedText' of null
qml/org/kde/plasma/components.3/mobiletextselection/MobileTextActionsToolBar.qml:78: TypeError: Cannot read property 'canPaste' of null

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
meven created this revision.Wed, Nov 6, 9:51 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptWed, Nov 6, 9:51 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
meven requested review of this revision.Wed, Nov 6, 9:51 AM
apol accepted this revision.Wed, Nov 6, 1:44 PM
This revision is now accepted and ready to land.Wed, Nov 6, 1:44 PM
This revision was automatically updated to reflect the committed changes.