If the annotations are disabled in the current pdf we can skip repopulating "Quick annotations" and in this way we also assure that the enabled/disabled state of the action is preserved upon configuration reparsing.
d->toolsEnabled must be initialized to true, in order to correctly populate the "Quick annotations" action the first time for non-protected pdf, given that setToolsEnabled is called after the first call to populateQuickAnnotations.
BUG: 424296
FIXED-IN: 1.11.0
remotes/origin/work/aacid/annoying_braces
Simone Gaiarin6 years agocommitted byAlbert Astals Cid
d->aQuickTools=newKSelectAction(QIcon::fromTheme(QStringLiteral("draw-freehand")),i18nc("@action:intoolbar Show list of quick annotation tools","Quick Annotations"),this);
d->aQuickTools=newKSelectAction(QIcon::fromTheme(QStringLiteral("draw-freehand")),i18nc("@action:intoolbar Show list of quick annotation tools","Quick Annotations"),this);
d->aQuickTools->setToolTip(i18nc("@info:tooltip","Choose an annotation tool from the quick annotations"));
d->aQuickTools->setToolTip(i18nc("@info:tooltip","Choose an annotation tool from the quick annotations"));