mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix crash when a .qet file with 0 diagrams.
This commit is contained in:
@@ -882,8 +882,11 @@ void ProjectView::loadDiagrams()
|
||||
addDiagram(sv);
|
||||
}
|
||||
|
||||
this->currentDiagram()->diagram()->loadElmtFolioSeq();
|
||||
this->currentDiagram()->diagram()->loadCndFolioSeq();
|
||||
if (DiagramView *dv = currentDiagram())
|
||||
{
|
||||
dv->diagram()->loadElmtFolioSeq();
|
||||
dv->diagram()->loadCndFolioSeq();
|
||||
}
|
||||
|
||||
QSettings settings;
|
||||
// If project have the folios list, move it at the beginning of the project
|
||||
|
||||
Reference in New Issue
Block a user