Unify code of Dressup features (part 1: Draft)
This commit is contained in:
committed by
Stefan Tröger
parent
4f7083aa1c
commit
a6de951e1d
@@ -42,7 +42,7 @@
|
||||
|
||||
using namespace PartDesignGui;
|
||||
|
||||
PROPERTY_SOURCE(PartDesignGui::ViewProviderDraft,PartDesignGui::ViewProvider)
|
||||
PROPERTY_SOURCE(PartDesignGui::ViewProviderDraft,PartDesignGui::ViewProviderDressUp)
|
||||
|
||||
ViewProviderDraft::ViewProviderDraft()
|
||||
{
|
||||
@@ -70,7 +70,7 @@ bool ViewProviderDraft::setEdit(int ModNum)
|
||||
// the task panel
|
||||
Gui::TaskView::TaskDialog *dlg = Gui::Control().activeDialog();
|
||||
TaskDlgDraftParameters *draftDlg = qobject_cast<TaskDlgDraftParameters *>(dlg);
|
||||
if (draftDlg && draftDlg->getDraftView() != this)
|
||||
if (draftDlg && draftDlg->getDressUpView() != this)
|
||||
draftDlg = 0; // another pad left open its task panel
|
||||
if (dlg && !draftDlg) {
|
||||
QMessageBox msgBox;
|
||||
|
||||
Reference in New Issue
Block a user