GUI crash during autofix
When loading an outdated model, the GUI tries to automatically update the model to the new MorpheusML XSD.
However, when I try to load this old model of a toggle_switch.xml, the GUI crashes while applying the AutoFixes.
Here is the last part of the stdout from morpheus-gui:
Match path is "MorpheusModel/Analysis/Logger/@interval"
Matched "Analysis"
Matched "Logger"
looking for attr "interval"
search ("MorpheusModel", "Analysis", "Logger", "@interval") move ("MorpheusModel", "Analysis", "Logger")
Removed leading tag "MorpheusModel" for relative path
Removed leading tag "Analysis" for relative path
Removed leading tag "Logger" for relative path
ASSERT: "!isEmpty()" in file /opt/local/libexec/qt4/include/QtCore/qlist.h, line 282
And here is the relevant part of the backtrace:
6 morpheus-gui 0x000000010f9845fc QList<QString>::first() + 52 (qlist.h:282)
7 morpheus-gui 0x000000010f9f5f20 QList<QString>::front() + 24 (qlist.h:298)
8 morpheus-gui 0x000000010f9ecf9f MorphModel::**applyAutoFixes**(QDomDocument) + 8789 (morpheus_model.cpp:479)
9 morpheus-gui 0x000000010f9e81ed MorphModel::MorphModel(QString, QObject*) + 657 (morpheus_model.cpp:60)
10 morpheus-gui 0x000000010f999352 config::openModel(QString) + 276 (config.cpp:309)
11 morpheus-gui 0x000000010f9df1cf MainWindow::loadXMLFile() + 819 (mainwindow.cpp:681)