LABEL: Fix for crash when labels looks like numbers...

This commit is contained in:
vsonnier 2016-06-11 13:15:01 +02:00
parent d7d9fc8c32
commit 9de22ffaf1

View File

@ -1695,9 +1695,12 @@ bool AppFrame::loadSession(std::string fileName) {
DataNode *demodUserLabel = demod->hasAnother("user_label") ? demod->getNext("user_label") : nullptr;
if (demodUserLabel && demodUserLabel->element()->getDataType() == DATA_STRING) {
demodUserLabel->element()->get(user_label);
if (demodUserLabel) {
//toString() re-formats strings recognized as numerals, but at least it works for
//all kind of data.
user_label = demodUserLabel->element()->toString();
}
ModemSettings mSettings;