mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4997 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -834,6 +834,8 @@ bool QETElementEditor::toFile(const QString &fn)
|
|||||||
{
|
{
|
||||||
m_elmt_scene->clearEventInterface();
|
m_elmt_scene->clearEventInterface();
|
||||||
m_elmt_scene->clearSelection();
|
m_elmt_scene->clearSelection();
|
||||||
|
UncheckAddPrimitive();
|
||||||
|
|
||||||
QDomDocument element_xml = m_elmt_scene->toXml();
|
QDomDocument element_xml = m_elmt_scene->toXml();
|
||||||
bool writing = QET::writeXmlFile(element_xml, fn);
|
bool writing = QET::writeXmlFile(element_xml, fn);
|
||||||
if (!writing) {
|
if (!writing) {
|
||||||
@@ -857,6 +859,7 @@ bool QETElementEditor::toLocation(const ElementsLocation &location)
|
|||||||
{
|
{
|
||||||
m_elmt_scene->clearEventInterface();
|
m_elmt_scene->clearEventInterface();
|
||||||
m_elmt_scene->clearSelection();
|
m_elmt_scene->clearSelection();
|
||||||
|
UncheckAddPrimitive();
|
||||||
|
|
||||||
if (!location.setXml(m_elmt_scene->toXml()))
|
if (!location.setXml(m_elmt_scene->toXml()))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user