Check for option->styleObject before accessing it
ClosedPublic

Authored by broulik on Mon, Jun 4, 3:07 PM.

Details

Summary

BUG: 395028
FIXED-IN: 5.12.6

Test Plan

Compiles. Scroll bars hover fine in both widgets and QML apps.

Should this perhaps use

bool widgetMouseOver( ( option->state & State_MouseOver ) );

like in scrollBarArrowColor so that it maybe gives a hover effect in this case?

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Mon, Jun 4, 3:07 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMon, Jun 4, 3:07 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Mon, Jun 4, 3:07 PM
hpereiradacosta resigned from this revision.Mon, Jun 4, 3:54 PM
davidedmundson accepted this revision.Tue, Jun 5, 8:41 AM
davidedmundson added a subscriber: davidedmundson.

Note you're not matching Breeze's existing coding style

This revision is now accepted and ready to land.Tue, Jun 5, 8:41 AM
This revision was automatically updated to reflect the committed changes.