Properly cancel the signature mode if we don't add one

remotes/origin/work/aacid/dont_show_non_valid_certs
Albert Astals Cid 5 years ago committed by Albert Astals Cid
parent 6325a4fe0b
commit a4030a20f5
  1. 3
      part/pageviewannotator.cpp

@ -971,6 +971,7 @@ QRect PageViewAnnotator::performRouteMouseOrTabletEvent(const AnnotatorEngine::E
if (signEngine->isAccepted()) {
static_cast<PickPointEngineSignature *>(m_engine)->sign(m_lockedItem->pageNumber());
}
m_continuousMode = false;
}
if (m_continuousMode)
@ -1185,8 +1186,8 @@ void PageViewAnnotator::selectStampTool(const QString &stampSymbol)
void PageViewAnnotator::detachAnnotation()
{
selectTool(-1, ShowTip::No);
if (!signatureMode()) {
selectTool(-1, ShowTip::No);
if (m_actionHandler)
m_actionHandler->deselectAllAnnotationActions();
} else {

Loading…
Cancel
Save