+ Avoid to open two transactions when creating a pad

This commit is contained in:
wmayer 2014-02-28 10:02:59 +01:00
parent a84abfda39
commit 6b578d13fc

View File

@ -474,8 +474,11 @@ TaskDlgPadParameters::~TaskDlgPadParameters()
void TaskDlgPadParameters::open()
{
QString msg = QObject::tr("Edit pad");
Gui::Command::openCommand((const char*)msg.toUtf8());
// a transaction is already open at creation time of the pad
if (!Gui::Command::hasPendingCommand()) {
QString msg = QObject::tr("Edit pad");
Gui::Command::openCommand((const char*)msg.toUtf8());
}
}
void TaskDlgPadParameters::clicked(int)