Use the right value of EnableMagicMimeActions
ClosedPublic

Authored by trmdi on Nov 14 2019, 5:58 PM.

Details

Summary

BUG: 409801

Test Plan

The bug is fixed.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
trmdi created this revision.Nov 14 2019, 5:58 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 14 2019, 5:58 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
trmdi requested review of this revision.Nov 14 2019, 5:58 PM
ngraham accepted this revision.Nov 14 2019, 8:56 PM
ngraham added a subscriber: ngraham.

Seems sensible to implement this the way reading all the other actions are implemented. Plasma people, is this okay?

This revision is now accepted and ready to land.Nov 14 2019, 8:56 PM
trmdi added a reviewer: apol.Nov 15 2019, 2:17 AM

I can't really object, as you're just following the existing code, but I don't really understand why we're doing this.

klipper/urlgrabber.cpp
106

if (!KlipperSettings::enableMagicMimeActions())

without any other changes would do the same thing and be just as fast. The KConfigSkeletonItem keeps the value locally without reading every time.

trmdi added a comment.Dec 4 2019, 5:40 PM
This comment was removed by trmdi.
trmdi updated this revision to Diff 70933.Dec 5 2019, 3:31 AM

Remove unneeded code

This revision was automatically updated to reflect the committed changes.