Fix dangling annotation tooltip

This commit is contained in:
Pedro Arthur P. R. Duarte 2020-09-07 10:01:11 +00:00 committed by Albert Astals Cid
parent 21262ae22b
commit e238f21bbb

View file

@ -782,6 +782,7 @@ void PageView::setupActions(KActionCollection *ac)
if (!d->annotator) {
d->annotator = new PageViewAnnotator(this, d->document);
connect(d->annotator, &PageViewAnnotator::toolSelected, d->aMouseNormal, &QAction::trigger);
connect(d->annotator, &PageViewAnnotator::toolSelected, d->mouseAnnotation, &MouseAnnotation::reset);
}
d->annotator->setupActions(ac);
}