[TD]fix update suppression logic

This commit is contained in:
Wanderer Fan
2022-03-14 12:02:25 -04:00
committed by WandererFan
parent 123203f741
commit 62a670431a
5 changed files with 22 additions and 23 deletions

View File

@@ -547,24 +547,9 @@ bool DrawView::keepUpdated(void)
// Base::Console().Message("DV::keepUpdated() - %s\n", getNameInDocument());
bool result = false;
bool pageUpdate = false;
bool force = false;
TechDraw::DrawPage *page = findParentPage();
if(page) {
pageUpdate = page->KeepUpdated.getValue();
force = page->forceRedraw();
}
if (DrawPage::GlobalUpdateDrawings() &&
pageUpdate) {
result = true;
} else if (!DrawPage::GlobalUpdateDrawings() &&
DrawPage::AllowPageOverride() &&
pageUpdate) {
result = true;
}
if (force) { //when do we turn this off??
result = true;
result = page->canUpdate() || page->forceRedraw();
}
return result;
}