mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Import dxf is managed by undo command
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include "../../newelementwizard.h"
|
||||
#include "../editorcommands.h"
|
||||
#include "../../dxf/dxftoelmt.h"
|
||||
#include "../UndoCommand/openelmtcommand.h"
|
||||
|
||||
#include <QSettings>
|
||||
#include <QActionGroup>
|
||||
@@ -1514,8 +1515,7 @@ void QETElementEditor::on_m_import_dxf_triggered()
|
||||
QDomDocument xml_;
|
||||
xml_.setContent(array_);
|
||||
|
||||
m_elmt_scene->fromXml(xml_);
|
||||
fillPartsList();
|
||||
m_elmt_scene->undoStack().push(new OpenElmtCommand(xml_, m_elmt_scene));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user