Allow Section based on ViewMulti

This commit is contained in:
WandererFan
2017-09-16 09:57:37 -04:00
committed by Yorik van Havre
parent 8193455890
commit ce7f6ed351
8 changed files with 103 additions and 59 deletions

View File

@@ -163,7 +163,6 @@ void TaskSectionView::updateValues()
m_section->SectionOrigin.setValue(origin);
m_section->SectionSymbol.setValue(ui->leSymbol->text().toUtf8().constData());
m_base->touch();
m_base->getDocument()->recompute();
}
@@ -302,8 +301,7 @@ bool TaskSectionView::reject()
PageName.c_str(),SectionName.c_str());
Gui::Command::doCommand(Gui::Command::Gui,"App.activeDocument().removeObject('%s')",SectionName.c_str());
Gui::Command::doCommand(Gui::Command::Gui,"Gui.ActiveDocument.resetEdit()");
m_base->touch();
m_base->getDocument()->recompute();
m_base->findParentPage()->requestPaint();
return false;
}