+ fix bug in chamfer/fillet when aborting command

This commit is contained in:
wmayer 2014-07-22 11:02:45 +02:00
parent d2cbd6817f
commit 107a7f50dc
2 changed files with 11 additions and 3 deletions

View File

@ -121,7 +121,11 @@ TaskDlgChamferParameters::~TaskDlgChamferParameters()
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)

View File

@ -121,12 +121,16 @@ TaskDlgFilletParameters::~TaskDlgFilletParameters()
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)
{
}
bool TaskDlgFilletParameters::accept()