mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 05:38:39 -05:00
LABEL: Fix for crash when labels looks like numbers...
This commit is contained in:
parent
d7d9fc8c32
commit
9de22ffaf1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user