mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Conductor autonum : use a default QUndoCommand as parent of other inherited QUndoCommand.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4802 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -602,7 +602,9 @@ void Terminal::mouseReleaseEvent(QGraphicsSceneMouseEvent *e)
|
||||
}
|
||||
|
||||
|
||||
QUndoCommand *undo = new AddItemCommand<Conductor *>(new_conductor, diagram());
|
||||
QUndoCommand *undo = new QUndoCommand();
|
||||
QUndoCommand *aic = new AddItemCommand<Conductor *>(new_conductor, diagram(), QPointF(), undo);
|
||||
undo->setText(aic->text());
|
||||
|
||||
if (use_properties)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user