+ fix bug in chamfer/fillet when aborting command
This commit is contained in:
parent
d2cbd6817f
commit
107a7f50dc
|
@ -121,7 +121,11 @@ TaskDlgChamferParameters::~TaskDlgChamferParameters()
|
||||||
|
|
||||||
void TaskDlgChamferParameters::open()
|
void TaskDlgChamferParameters::open()
|
||||||
{
|
{
|
||||||
|
// a transaction is already open at creation time of the chamfer
|
||||||
|
if (!Gui::Command::hasPendingCommand()) {
|
||||||
|
QString msg = tr("Edit chamfer");
|
||||||
|
Gui::Command::openCommand((const char*)msg.toUtf8());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskDlgChamferParameters::clicked(int)
|
void TaskDlgChamferParameters::clicked(int)
|
||||||
|
|
|
@ -121,12 +121,16 @@ TaskDlgFilletParameters::~TaskDlgFilletParameters()
|
||||||
|
|
||||||
void TaskDlgFilletParameters::open()
|
void TaskDlgFilletParameters::open()
|
||||||
{
|
{
|
||||||
|
// a transaction is already open at creation time of the fillet
|
||||||
|
if (!Gui::Command::hasPendingCommand()) {
|
||||||
|
QString msg = tr("Edit fillet");
|
||||||
|
Gui::Command::openCommand((const char*)msg.toUtf8());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskDlgFilletParameters::clicked(int)
|
void TaskDlgFilletParameters::clicked(int)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TaskDlgFilletParameters::accept()
|
bool TaskDlgFilletParameters::accept()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user