[TechDraw] Improve readability of ViewProviderViewSection.cpp
This commit is contained in:
committed by
WandererFan
parent
3b809fe77b
commit
85fea935ab
@@ -139,17 +139,15 @@ void ViewProviderViewSection::updateGraphic(void)
|
||||
|
||||
bool ViewProviderViewSection::setEdit(int ModNum)
|
||||
{
|
||||
if (ModNum == ViewProvider::Default ) {
|
||||
if (Gui::Control().activeDialog()) { //TaskPanel already open!
|
||||
return false;
|
||||
}
|
||||
// clear the selection (convenience)
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Control().showDialog(new TaskDlgSectionView(getViewObject()));
|
||||
return true;
|
||||
} else {
|
||||
if (ModNum != ViewProvider::Default ) {
|
||||
return ViewProviderDrawingView::setEdit(ModNum);
|
||||
}
|
||||
if (Gui::Control().activeDialog()) { //TaskPanel already open!
|
||||
return false;
|
||||
}
|
||||
// clear the selection (convenience)
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Control().showDialog(new TaskDlgSectionView(getViewObject()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user