mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
fix segfault on load cancelled
This commit is contained in:
committed by
Laurent Trinques
parent
2180805637
commit
19d867f6a4
@@ -225,7 +225,7 @@ QETProject::ProjectState QETProject::openFile(QFile *file)
|
||||
if(opened_here) {
|
||||
file->close();
|
||||
}
|
||||
return ProjectState::Ok;
|
||||
return m_state;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1392,6 +1392,7 @@ void QETProject::readProjectXml(QDomDocument &xml_project)
|
||||
else
|
||||
{
|
||||
m_state = ProjectParsingFailed;
|
||||
return;
|
||||
}
|
||||
|
||||
m_data_base.blockSignals(true);
|
||||
|
||||
Reference in New Issue
Block a user